3 , 2+1, 1+1+1

The number 3 can be written as 3 , 2+1 , 1+2 , 1+1+1, which is a total of four ways. Note that the order of summands in important. If the number of ways in which the number n be written is a, what is the value of 2a?

2^2n 3^n 2^n 2^(n-2)

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.

3 solutions

The standard proof is as follows. For a given positive integer n n , write out a string of n 1 n 1 's with small circles between the 1 1 's as follows:

1 o 1 o 1 o 1....1 o 1 o 1 1 o 1 o 1 o 1.... 1 o 1 o 1 .

Since there are n 1 n 1 's there will be n 1 n - 1 small circles. We then replace a combination of the circles with + + signs to create a particular composition of the integer n n .

So, for example, with n = 3 n = 3 , we start with 1 o 1 o 1 1 o 1 o 1 . By replacing only the first circle with a + + sign we create the composition 1 + 2 1 + 2 , and by replacing only the second circle with a + + sign we create the composition 2 + 1 2 + 1 . Replacing both circles gives us 1 + 1 + 1 1 + 1 + 1 , and replacing neither gives us the composition 3 3 .

In this way, for any n n , we can create a one-to-one correspondence between the sequences as described in the above process and the distinct compositions of n n . Since we have n 1 n - 1 circles we can potentially convert to + + signs we have 2 n 1 2^{n-1} such sequences, indicating that a = 2 n 1 a = 2^{n-1} , and thus 2 a = 2 n 2a = \boxed{2^n} .

Thanks. I have updated the phrasing of the problem.

Calvin Lin Staff - 6 years, 10 months ago

what to do if order of summands is not important... ie 1+2 is same as 2+1, then how to find 'a'

Vighnesh Raut - 6 years, 4 months ago
Sachin Mittal
Aug 21, 2014
  • 1 can be rep in 1 way(1)

  • 2 can be rep in 2 ways( 2,1+1)

  • also 3 can be rep in 4 ways(as given)

  • then,4 can be rep in 8 ways and so on........and above follows a series::>2^(n-1)

  • hence if n can be rep in 'a' ways i.e. 2^(n-1)=a

then,..the value of 2a=>2*2^(n-1)=2^n

Vinit Payal
Jul 24, 2014

Can done easily by putting value of n in all options If anyone have any considerable soln plz let me know

3 cannot be represented as 1 + 1, so there are actually only 3 ways of partitioning the number 3, (assuming that the order of the summands is of no consequence). So for n = 3 we have 2a = 6, which does not equal 2^3 = 8.

For n = 5, for example, we end up with a = 7, and thus 2a = 14, which again does not match 2^5 = 32. Establishing a general formula for the number of partitions of an integer is somewhat complicated, involving an analysis using generating functions.

If order does matter, then we are dealing with compositions of an integer. The compositions of 3 are 3, 2 + 1, 1 + 2 and 1 + 1 + 1 + 1. Perhaps this is what the asker meant, in which case the number of compositions of an integer n is 2^(n-1), which does give us a = 2^n. (I'll try and provide a proof of this later.)

@Gulshan Sharma I suggest that you change the sums in your question to "3, 2 + 1, 1 + 2, 1 + 1 + 1 + 1", and also stress that the order of the summands does matter. This will leave no doubt that the solution is indeed 2^n. :)

Brian Charlesworth - 6 years, 10 months ago

Log in to reply

hello mr. charlesworth, you wrote that i should change sums to 3 , 2+1, 1+2, 1+1+1+1. But 3 can not be represented as 1+1+1+1 it is for sure 1+ 1+1 . And the way in which the question has been framed clears it very well that order of summands do matter. Bye the way Thanks for your good suggestions and please keep doing that in future too. thank you.

Gulshan Sharma - 6 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...