Let a be the number of tuples ( a 1 , a 2 , a 3 , … ) that satisfy the equation given below : i = 1 ∑ ∞ i a i = 4 5
Let b be the number of tuples ( b 1 , b 2 , b 3 , … ) that satisfy the inequality given below : i = 1 ∑ ∞ ( i + 1 ) b i ≤ 4 5
Enter your answer by concatenating a and b . For example, if a = 2 3 and b = 6 5 , then enter 2 3 6 5 as your answer.
Details and Assumptions
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.
Both of the given problems boils down to number of partitions of 4 5 .
For example,
This can be easily done using Mathematica,
PartitionsP[45]
which gives output as
89134
Just concatenate it twice to get the answer
8913489134
Anyways, here's python program,
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
Problem Loading...
Note Loading...
Set Loading...
Here's mine code in java