Number of 1 1 s in Compositions of 20 20

A composition of a positive integer n n is an expression of n n as the sum of only 1s and 2s, where the order matters.

For example, ( 1 + 1 + 1 ) (1+1+1) , ( 1 + 2 ) (1+2) , and ( 2 + 1 ) (2+1) are all possible compositions of 3.
The number of total 1s in all three of these compositions is 5.

Find the total number of 1s in all possible compositions of 20.


The answer is 100610.

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

Kushal Bose
Dec 22, 2016

1. x + 2. y = 20 1.x+2.y=20 where x x is the number of 1 s 1's and y y is the number of 2 s 2's

1. x = 20 2. y 1.x=20-2.y it can be concluded that x x should be even

Number of x Number of y No of ways Total number of 1's
0 0 10 10 1 1 0 0
2 2 9 9 11 ! 9 ! 2 ! \dfrac{11!}{9!2!} 11 ! 9 ! 2 ! . 2 = 110 \dfrac{11!}{9!2!}.2=110
4 4 8 8 12 ! 8 ! 4 ! \dfrac{12!}{8!4!} 12 ! 8 ! 4 ! . 4 = 1980 \dfrac{12!}{8!4!}.4=1980
6 6 7 7 13 ! 7 ! 6 ! \dfrac{13!}{7!6!} 13 ! 7 ! 6 ! . 6 = 10296 \dfrac{13!}{7!6!}.6=10296
8 8 6 6 14 ! 8 ! 6 ! \dfrac{14!}{8!6!} 13 ! 7 ! 6 ! . 8 = 24024 \dfrac{13!}{7!6!}.8=24024
10 10 5 5 15 ! 10 ! 5 ! \dfrac{15!}{10!5!} 15 ! 10 ! 5 ! . 10 = 30030 \dfrac{15!}{10!5!}.10=30030
12 12 4 4 16 ! 12 ! 4 ! \dfrac{16!}{12!4!} 16 ! 12 ! 4 ! . 12 = 21840 \dfrac{16!}{12!4!}.12=21840
14 14 3 3 17 ! 14 ! 3 ! \dfrac{17!}{14!3!} 17 ! 14 ! 3 ! . 14 = 9520 \dfrac{17!}{14!3!}.14=9520
16 16 2 2 18 ! 16 ! 2 ! \dfrac{18!}{16!2!} 18 ! 16 ! 2 ! . 16 = 2448 \dfrac{18!}{16!2!}.16=2448
18 18 1 1 19 ! 18 ! \dfrac{19!}{18!} 19 ! 18 ! . 18 = 342 \dfrac{19!}{18!}.18=342
20 20 0 0 20 ! 20 ! \dfrac{20!}{20!} 20 ! 20 ! . 1 = 20 \dfrac{20!}{20!}.1=20

Total ways= 100610 100610

@Muhammad Rasel Parvej A lovely sum.... . Although a tough calculation... Anyways it was a good one

Md Zuhair - 4 years, 5 months ago

Log in to reply

I must appreciate the effort by @Kushal Bose . But there is better solution with less calculation. I'll post it later.

Muhammad Rasel Parvej - 4 years, 5 months ago

Log in to reply

Ya there may be but while doing the sum I faced calculation difficulties too

Md Zuhair - 4 years, 5 months ago

Log in to reply

@Md Zuhair Exactly I have also faced many problems but I tried untill I get the result

Kushal Bose - 4 years, 5 months ago

Log in to reply

@Kushal Bose I used generating functions , but i was stuck with this sum r = 0 10 ( 20 2 r ) ( 20 r r ) \displaystyle\sum_{r=0}^{10} (20-2r)\dbinom{20-r}{r} .

Sabhrant Sachan - 4 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...