Quote:
Originally Posted by ThePerfectHacker 2. Given a positive integer  define a  -partition to be a sum of  positive integers which sum to  . For example,  . The following are  -partitions.  and  and  . Notice that  are considered distinct*. Say you a given a specific  . And given a specific value of  , can you find the total number of  -partitions of this integer, with a formula?** Now try to see how many partitions (again not counting order) exist for a given integer  (the answer is really supprising).
Hint: Review your Combinatorics formula for this one. |
So if

and using

-partitions(including repetitions), then we will have

possibilities.
Am i even close to correct?
__________________
If you need more than 3 levels of indentation, you're screwed anyway, and should fix your program. - Linus Torvalds
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.