Puzzles/Statistical puzzles/Summing n/Solution: Difference between revisions

From testwiki
Jump to navigation Jump to search
imported>Pi zero
{{BookCat}}
 
(No difference)

Latest revision as of 00:33, 21 December 2017

The solution is easily found if the problem is restated graphically. Consider n=3, k=2. Possible sums are 3 = 0+3, 3 = 1 + 2. A graphical representation could be:


||ooo
|o|oo

, respectively, with the bars representing separations between the summands and 'o's representing the value of the summands. Then obviously the problems is equivalent to finding the number of ways to distribute k1 bars among n+k1 slots, since we need only k1 bars to partition the space into k summands. Therefore the solution is N=(n+k1k1), if N denotes the number of unique sums.

For the next part, set aside k 'o's since each partition has to have at least 1 'o'. Now the problem reduces to the previous one with a reduced value of n i.e. nk. So the solution is

N=(nk+k1k1)=(n1k1),

if N denotes the number of unique sums.

Template:BookCat