Sums of Sums of Sums of

Algebra Level 5

Let N = a 1 = 1 2014 a 2 = 1 a 1 a 2014 = 1 a 2013 2014 sums 1 N=\underbrace{\displaystyle\sum^{2014}_{a_1=1}\sum^{a_1}_{a_2=1}\cdots \sum^{a_{2013}}_{a_{2014}=1}}_{2014\text{ sums}}1

How many zeroes to the right of the right-most non-zero decimal digit are in N N ?

Details and Assumptions \text{Details and Assumptions}

  • If N = 10080000 N=10080000 , then the answer would be 4 4 .


The answer is 3.

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

Daniel Liu
Apr 22, 2014

Let f ( n , m ) = a 1 = 1 m a 2 = 1 a 1 a n = 1 a n 1 n sums 1 f(n,m)=\underbrace{\displaystyle\sum^{m}_{a_1=1}\sum^{a_1}_{a_2=1}\cdots \sum^{a_{n-1}}_{a_{n}=1}}_{n\text{ sums}}1 We shall prove using induction that f ( n , m ) = ( n + m 1 n ) f(n,m)=\dbinom{n+m-1}{n} .

Base case: n = 1 n=1

Clearly, f ( 1 , m ) = a 1 = 1 m 1 = ( m 1 ) f(1,m)=\displaystyle\sum^{m}_{a_1=1}1=\dbinom{m}{1} .

Induction step:

Let us assume f ( k , m ) = a 1 = 1 m a 2 = 1 a 1 a k = 1 a k 1 i sums 1 = ( k + m 1 k ) f(k,m)=\underbrace{\displaystyle\sum^{m}_{a_1=1}\sum^{a_1}_{a_2=1}\cdots \sum^{a_{k-1}}_{a_{k}=1}}_{i\text{ sums}}1=\dbinom{k+m-1}{k}

We can see that f ( k + 1 , m ) = a 1 = 1 m a 2 = 1 a 1 a k + 1 = 1 a k k + 1 sums 1 = i = 1 m f ( k , i ) = i = 1 m ( k + i 1 k ) f(k+1,m)=\underbrace{\displaystyle\sum^{m}_{a_1=1}\sum^{a_1}_{a_2=1}\cdots \sum^{a_{k}}_{a_{k+1}=1}}_{k+1\text{ sums}}1=\displaystyle\sum^{m}_{i=1}f(k,i)=\displaystyle\sum^{m}_{i=1}\dbinom{k+i-1}{k}

By the Hockey-Stick Identity, i = 1 m ( k + i 1 k ) = ( k + m k + 1 ) = ( ( k + 1 ) + m 1 k + 1 ) \displaystyle\sum^{m}_{i=1}\dbinom{k+i-1}{k}=\dbinom{k+m}{k+1}=\dbinom{(k+1)+m-1}{k+1} , and we have completed our proof.


It remains to find the number of zeroes to the right of the last non-zero digit in f ( 2014 , 2014 ) = ( 4027 2014 ) = 4027 ! 2013 ! 2014 ! f(2014,2014)=\binom{4027}{2014}=\dfrac{4027!}{2013!2014!} . We can do this by counting the number of zeroes in 4027 ! 4027! , then subtracting the number of zeroes in 2013 ! 2013! and 2014 ! 2014!

The number of zeroes in 4027 ! 4027! is i = 1 4027 5 i = 1005 \displaystyle\sum_{i=1}^{\infty}\left\lfloor\dfrac{4027}{5^i}\right\rfloor=1005 .

The number of zeroes in 2013 ! 2013! is i = 1 2013 5 i = 501 \displaystyle\sum_{i=1}^{\infty}\left\lfloor\dfrac{2013}{5^i}\right\rfloor=501 .

The number of zeroes in 2014 ! 2014! is i = 1 2014 5 i = 501 \displaystyle\sum_{i=1}^{\infty}\left\lfloor\dfrac{2014}{5^i}\right\rfloor=501 .

Thus the number of zeroes after the last non-zero digit of ( 4027 2014 ) \dbinom{4027}{2014} is, perhaps surprisingly, 1005 501 501 = 3 1005-501-501=\boxed{3} .

You've got to be careful reading this one. At first, I thought the answer would be 0 0 coming from a value of 201 4 2014 , 2014^{2014}, but then I read it more closely.

You've been releasing some amazing problems recently @Daniel Liu , have you been coming up with them yourself?

Trevor B. - 7 years, 1 month ago

Log in to reply

Thanks! Yes, I have been coming up with them myself. This problem was actually originally created a year ago; however, I was not as smart back then so I couldn't solve my own problem. This year I learned enough to solve my problem, so I posted it.

Daniel Liu - 7 years, 1 month ago

Log in to reply

Where/how do you learn your math? You have a quite large knowledgebase for a 14 yr old (no offense). Great work.

John M. - 6 years, 11 months ago

Wow, that's quite something if you remember it from a year ago. I'm lucky if I can come up with a problem at school and remember it at home a couple hours later.

The formula for f ( m , n ) f(m,n) looks like the balls-in-urns solution. I have an idea for how to prove this, but I can't express it mathematically (also I just got back from a rigorous firefighter/paramedic training program and we were working with the fire hoses in our bunker gear today, and I am REALLY tired). I pretty much only logged on to see if there was anything going on, and this problem looked nice. Anyways, can someone discuss how the two are related and if the expression from the problem can be used in a proof of it?

Trevor B. - 7 years, 1 month ago

Log in to reply

@Trevor B. I actually didn't remember it at all. I just found it on my desktop. :P

You're right, the formula is the balls and urns formula! Let me analyze this...

Daniel Liu - 7 years, 1 month ago

Log in to reply

@Daniel Liu Yeah, I have a bunch of LaTeX files on my desktop that I need to sift through. I randomly found one yesterday that found ( f ( x ) ) 2 d x , \displaystyle\int(f(x))^2\text{ }dx, with IBP. That was weird... I'm done with math for the night, I might be posting comments, but I am beat. Sorry I can't help with the balls-in-urns relation now...

Trevor B. - 7 years, 1 month ago

@Trevor B. Indeed, the sum is equivalent to calculate how many ways you can select 2014 integers from 1...1024 and satisfies the condition a 1 a 2 . . . a 2014 1 {a}_{1} \ge {a}_{2} ... \ge {a}_{2014} \ge 1 , which equals to the number of ways to drop 2014 balls into 2014 urns.

Roger Lu - 7 years ago

At first I thought the number of zero's to the left of the right most non zero digit! Can you please specify to the right of the non zero digit? Thanks!

A Former Brilliant Member - 7 years, 1 month ago

Log in to reply

I clarified.

Daniel Liu - 7 years, 1 month ago

Log in to reply

Thank You! (y)

A Former Brilliant Member - 7 years, 1 month ago

that would have been a super question, don't you think?:)

A Former Brilliant Member - 7 years, 1 month ago

Log in to reply

@A Former Brilliant Member I do not know how to solve your proposed problem though! :P

Daniel Liu - 7 years, 1 month ago

Log in to reply

@Daniel Liu me too!

A Former Brilliant Member - 7 years, 1 month ago

How do you know that f ( n , m ) = C ( n + m 1 , n ) f(n,m)=C(n+m-1,n)

Please explain a little bit

Figel Ilham - 6 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...