Puzzles/Statistical puzzles/Summing n

From testwiki
Revision as of 00:33, 21 December 2017 by imported>Pi zero ({{BookCat}})
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Puzzles | Statistical puzzles | Summing n


Given a target sum n, you can choose k summands each of which is a number, ni{0,1,...},i=1,...,k, such that i=1kni=n. How many ways are there of doing this?

Here the notion of a sum is same as that of a permutation, so two sums are same iff they contain the same summands in the same order. E.g. 2+3+1 and 1+3+2 are not the same.

While you are at it, whats the answer, if ni{1,2,...}?

solution

Template:BookCat