1 1 1 1 1 1 1 2 1 1 1 2 2 1 1 1 3 3 2 1 1Where row $n$ corresponds to integer $n$, and each column $C$ in row $m$ from left to right corresponds to the number of names beginning with $C$. Optionally note that the sum of the $n$-th row $P(n)$ is the integer partition function. Implement a function that returns the sum of the $n$-th row.
numberOfNames
is a function.
testString: assert(typeof numberOfNames === 'function', 'numberOfNames
is a function.');
- text: numberOfNames(5)
should equal 7.
testString: assert.equal(numberOfNames(5), 7, 'numberOfNames(5)
should equal 7.');
- text: numberOfNames(12)
should equal 77.
testString: assert.equal(numberOfNames(12), 77, 'numberOfNames(12)
should equal 77.');
- text: numberOfNames(18)
should equal 385.
testString: assert.equal(numberOfNames(18), 385, 'numberOfNames(18)
should equal 385.');
- text: numberOfNames(23)
should equal 1255.
testString: assert.equal(numberOfNames(23), 1255, 'numberOfNames(23)
should equal 1255.');
- text: numberOfNames(42)
should equal 53174.
testString: assert.equal(numberOfNames(42), 53174, 'numberOfNames(42)
should equal 53174.');
- text: numberOfNames(123)
should equal 2552338241.
testString: assert.equal(numberOfNames(123), 2552338241, 'numberOfNames(123)
should equal 2552338241.');
```