Talk:Ordered partitions

From Rosetta Code
Revision as of 22:27, 7 February 2011 by Rdm (talk | contribs) (huh?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Incorrect math statement

The task says:

Note that the number of elements in the list is

But this cannot be right.

A partition with args 1,2,4 would have 105 distinct partitions. But 4 choose 1 is 0 and 4 choose 2 is 0 and 4 choose 4 is 1, so the above formula would give a result of 6. --Rdm 22:27, 7 February 2011 (UTC)