Big answer

Find the number of partitions of 40 if order of integers does matter.


A partition of a positive integer n n is an expression of n n as the sum of one or more positive integers (or parts ). The order of the integers in the sum "does not matter": that is, two expressions that contain the same integers in a different order are considered to be the same partition.

For example, 4 has eight partitions: 4 = 3+1 = 1+3 = 2+1+1 = 1+2+1 = 1+1+2 = 1+1+1+1 = 2+2.


The answer is 549755813888.

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.

1 solution

Atishay Jain
Oct 17, 2017

Let's check partition for any natural number 'n' . Now,

n = 1 + ( n 1 ) n = 1 + (n-1) Keeping the last term fixed gives us that only one type of such number is possible.

n = 2 + ( n 2 ) n = 2 + (n-2) now, since n-2 is fixed therefore the possible numbers will be the number of partitions of 2 i.e 2.

Similarly, further we can say that the number of partitions of n will be number of partitions of [ ( n 1 ) + ( n 2 ) . . . . . . . . + 2 + 1 + 0 ] [(n-1) + (n-2)........+ 2 + 1 + 0]

Let the number of partitions of n be a(n) a ( n ) = a ( n 1 ) + a ( n 2 ) + . . . . . a ( 3 ) + a ( 2 ) + a ( 1 ) + a ( 0 ) a(n) = a(n-1) + a(n-2) + .....a(3) + a(2) + a(1) + a(0)

now the required series becomes -- 1,1,2,4,8,16,..... now a ( 40 ) = 2 39 = 549755813888 a(40) = 2^{39} = 549755813888

1 pending report

Vote up reports you agree with

×

Problem Loading...

Note Loading...

Set Loading...