A partition of is an expression of as a sum of not necessarily distinct positive integers, where the order does not matter. Note that counts as a partition of .
Let the number of partitions of with no part equal to 1.
For instance, because Find .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Each partition of n can be uniquely written as k + ( partition of n − k with no terms greater than k . ) Define therefore C n , k ′ = number of partitions of n without 1 and with no terms greater then k . The trick is to generate C n , k ′ inductively; clearly, C n ′ = C n , n ′ .
Some simple observations: C 0 , k ′ = 1 C 1 , k ′ = 0 for all k ≥ 1 . C n , 0 ′ = 0 . C n , k ′ = C n , n ′ for all k > n . and the most important one is the recursion formula C n , k ′ = C n , k − 1 ′ + C n − k , k ′ . (The partitions of n with no terms greater than k consist of the partitions of n with no terms greater than k − 1 , plus those of the form ( k + a partition of n − k with no terms greater than k ).)
Output:
For more information about the sequence, see this site .