140 Followers Problem

x + y + z = 140 \Large\lfloor \sqrt{x} \rfloor + \lfloor \sqrt{y} \rfloor + \lfloor \sqrt{z} \rfloor = 140

Find the number of non-negative integral solutions to the equation above.

Note: k \lfloor k \rfloor represents the greatest integer less than or equal to k k .
You can use calculators to calculate the final sum.


The answer is 3782205855.

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

Surya Prakash
Aug 27, 2015

The number of non-negative integer solutions to x + y + z = 140 \lfloor \sqrt{x} \rfloor + \lfloor \sqrt{y} \rfloor + \lfloor \sqrt{z} \rfloor = 140 is equivalent to finding the coefficient of the term t 140 t^{140} in the expansion,

( 1 + t 1 + t 2 + ) ( 1 + t 1 + t 2 + ) ( 1 + t 1 + t 2 + ) (1+t^{\lfloor \sqrt{1} \rfloor} + t^{\lfloor \sqrt{2} \rfloor} +\ldots )(1+t^{\lfloor \sqrt{1} \rfloor} + t^{\lfloor \sqrt{2} \rfloor} + \ldots )(1+t^{\lfloor \sqrt{1} \rfloor} + t^{\lfloor \sqrt{2} \rfloor} + \ldots )

= ( 1 + t + t + t + t 2 + t 2 + t 2 + t 2 + t 2 + ) 3 =(1+t + t+ t+ t^{2} +t^{2} + t^{2} + t^{2} + t^{2} + \ldots)^{3} = ( 1 + 3 t + 5 t 2 + 7 t 3 + ) 3 =(1+3t + 5t^{2} +7t^{3} + \ldots )^{3} = ( 1 + t ( 1 t ) 2 ) 3 (Sum of terms in infinite A.G.P) =\left( \dfrac{1+t}{(1-t)^{2}} \right) ^3 \text{(Sum of terms in infinite A.G.P)} = ( 1 + t ) 3 ( 1 t ) 6 =(1+t)^{3} (1-t)^{-6} = ( 1 + 3 t + 3 t 2 + t 3 ) ( 1 + ( 6 1 ) t + ( 7 2 ) t 2 + + ( 5 + r r ) + ) =(1+3t+3t^{2} + t^{3})(1+ \binom{6}{1} t + \binom{7}{2} t^{2} + \ldots + \binom{5+r}{r} + \ldots )

So, the coefficient of t 140 t^{140} in the above expansion is

( 145 140 ) + 3 ( 144 139 ) + 3 ( 143 138 ) + ( 142 137 ) = 3782205855 \large{\binom{145}{140} + 3 \binom{144}{139} + 3 \binom{143}{138} + \binom{142}{137}}=\boxed{3782205855} .

Moderator note:

Great approach with converting it into a generating function and manipulating it from there.

Great approach with converting it into a generating function and manipulating it from there.

That is not how I would have approached this question, thanks for sharing this!

Calvin Lin Staff - 5 years, 9 months ago

This is so beautiful. Thank you

Pi Han Goh - 5 years, 9 months ago

Instead of searching for non-negative integral solutions, I had tried positive integral solutions.

Good Solution, BTW.

Janardhanan Sivaramakrishnan - 5 years, 9 months ago

I really did it using tons of paper. Very amazing and magic solutions. I really love it. I use the approach of using sums instead and using a computer to solve it. By then, I have the generalisation. I'm so thunderstruck!

Figel Ilham - 5 years, 9 months ago

Beautiful Solution! I really love this method. I hadn't seen this solution earlier.

Satyajit Mohanty - 5 years, 9 months ago
Otto Bretscher
Aug 29, 2015

My solution is more pedestrian than Surya's.

We start with the observation that there are 2 p + 1 2p+1 integers x x with x = p \lfloor{\sqrt{x}}\rfloor=p , namely, p 2 x p 2 + 2 p = ( p + 1 ) 2 1 p^2\leq{x}\leq{p^2+2p}=(p+1)^2-1 .

The number of integer pairs ( x , y ) (x,y) with x + y = q \lfloor{\sqrt{x}}\rfloor+\lfloor{\sqrt{y}}\rfloor=q is p = 0 q ( 2 p + 1 ) ( 2 q 2 p + 1 ) = 1 3 ( q + 1 ) ( 2 q 2 + 4 q + 3 ) \sum_{p=0}^{q}(2p+1)(2q-2p+1)=\frac{1}{3}(q+1)(2q^2+4q+3) .

Finally, the number of integer triples ( x , y , z ) (x,y,z) with x + y + z \lfloor{\sqrt{x}}\rfloor+\lfloor{\sqrt{y}}\rfloor+\lfloor{\sqrt{z}}\rfloor = 140 =140 is q = 0 140 1 3 ( q + 1 ) ( 2 q 2 + 4 q + 3 ) ( 281 2 q ) \sum_{q=0}^{140}\frac{1}{3}(q+1)(2q^2+4q+3)(281-2q) = 3782205855 =\boxed{3782205855}

Nice solution. :) But my solution is big because of it's huge calculation.

Surya Prakash - 5 years, 9 months ago

Log in to reply

I was glad that you allowed us to use a calculator for the "final sum." ;)

Otto Bretscher - 5 years, 9 months ago

Log in to reply

Hehehehe :)

Surya Prakash - 5 years, 9 months ago

We have that in order for x = n \left\lfloor \sqrt { x } \right\rfloor =n the following must be satisfied: n x < n + 1 n\le \sqrt { x } <n+1 Squaring both sides we have that: n 2 x < n 2 + 2 n + 1 { n }^{ 2 }\le x<{ n }^{ 2 }+2n+1 There are 2 n + 1 2n+1 values that x x can take on to statisfy this condition. We can now take a sum to find the total combinations for x x , y y and z z : X = 0 140 Y = 0 140 X ( 2 X + 1 ) ( 2 Y + 1 ) ( 2 ( 140 X Y ) + 1 ) \sum _{ X=0 }^{ 140 }{ \sum _{ Y=0 }^{ 140-X }{ (2X+1)(2Y+1)(2(140-X-Y)+1) } } Here X X denotes the value of x \left\lfloor \sqrt { x } \right\rfloor for X 2 x < X 2 + 2 X + 1 { X }^{ 2 }\le x<{ X }^{ 2 }+2X+1 , and so does Y Y . Evaluating the sum we have that the number of combinations of x x , y y and z z is: X = 0 140 Y = 0 140 X ( 2 X + 1 ) ( 2 Y + 1 ) ( 2 ( 140 X Y ) + 1 ) = 3782205855 \sum _{ X=0 }^{ 140 }{ \sum _{ Y=0 }^{ 140-X }{ (2X+1)(2Y+1)(2(140-X-Y)+1) } }=3782205855

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...