Isn't 100000 100000 such a huge number (Part 3)?

How many positive integers x x satisfy the equation:

x 99998 = x 100000 \lfloor{\frac{x}{99998}}\rfloor=\lfloor{\frac{x}{100000}}\rfloor

where x \lfloor{x}\rfloor represents the greatest integer smaller than or equal to x x .


The answer is 2499949999.

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.

4 solutions

Patrick Corn
Nov 25, 2014

Let N = 1 0 5 N = 10^5 . Suppose x N = n \lfloor \frac{x}{N} \rfloor = n ; this is equivalent to x = N n + r x = Nn+r for some nonnegative r < N r < N . Then the given equation is equivalent to x N 2 < n + 1 \frac{x}{N-2} < n+1 , which is equivalent to N n + r < ( N 2 ) ( n + 1 ) Nn+r < (N-2)(n+1) , which is equivalent to r + 2 n < N 2 r+2n < N-2 .

Each ordered pair ( r , n ) (r,n) (except for ( 0 , 0 ) (0,0) !) satisfying this inequality leads to a unique positive x = N n + r x = Nn+r satisfying the equation. So we need to count these ordered pairs. Well, as n n ranges from 0 0 to N / 2 2 N/2-2 , r r ranges from 0 0 to N 2 2 n N-2-2n . So the total number of pairs (remembering to subtract 1 to avoid ( 0 , 0 ) (0,0) ) is 1 + n = 0 N / 2 2 ( N 2 2 n ) = 1 + ( N 2 ) ( N / 2 1 ) ( N / 2 2 ) ( N / 2 1 ) = N ( N 2 ) 4 1 , \begin{aligned} -1 + \sum_{n=0}^{N/2-2} (N-2-2n) &= -1 + (N-2)(N/2-1)-(N/2-2)(N/2-1) \\ &= \frac{N(N-2)}4 - 1, \end{aligned} and plugging in N = 100000 N = 100000 gives our answer of 2499949999 \fbox{2499949999} .

r+2n<N-2. So shouldn't the answer rather be 2499949999-49999 for the less than sign??

I mean that as it is less than sign, shouldn't it rather be summation of N-2N-2-1 ??

Ash Dab - 6 years, 6 months ago

Log in to reply

Yep, it's actually r { 0 , 1 , 2 , , N 2 2 n 1 } r \in \{0,1,2,\dots,N-2-2n-1\} , but we only need to find the number of possible solutions of r r , which is [ ( N 2 2 n 1 ) 0 ] + 1 = N 2 2 n [(N-2-2n-1)-0]+1 = N-2-2n possible solutions of r r (we'll exclude ( 0 , 0 ) (0,0) later). After that we just take the sum and we still get the same answer.

Samuraiwarm Tsunayoshi - 6 years, 6 months ago

man i considered zero too :(

Abhinav Raichur - 6 years, 6 months ago
Kenny Lau
Nov 27, 2014
  • When LHS equals 0, we have 99997 possible values of x x (0 is excluded).
  • When LHS equals 1, we have 99996.
  • When LHS equals 2, we have 99994.
  • When LHS equals 3, we have 99992.
  • It will continue until there is no more possible values of x x , and adding them together yields a sum of 2499949999 2499949999 (if you don't know how to add them together, level 5 is not the place for you :ppp) (no offense)

This is not a solution but a useful tool for such problem .


I found generalization of such problem in a book without its proof. It is as follow - For any m 2 m\geq 2 the number of positive integers x such that [ x m 1 ] = [ x m + 1 ] \bigg [ \frac {x}{m-1} \bigg ]=\bigg [ \frac {x}{m+1} \bigg ] is m 2 4 4 \frac {m^{2}-4}{4} if m is even and m 2 5 4 \frac {m^{2}-5}{4} , if m is odd .


Here [ x ] [x] denotes greatest integer less than or equal to x x .


Here m=99999 and m is odd so 9999 9 2 5 4 \frac {99999^{2}-5}{4} = 2499949999 \boxed {2499949999} .

Care to name the book!

Kartik Sharma - 6 years, 6 months ago

Log in to reply

Its arihant's book named 'Indian National Mathematics Olympiad'.

Ramprasad Rakhonde - 6 years, 6 months ago
Kartik Sharma
Dec 4, 2014

The main thing is to see that for all numbers x < 99998 x<99998 , x is valid, but for x = 99998 x = 99998 , the LHS becomes 1 while RHS will still be 0. In the same way, this will continue until x = 100000 x = 100000 , when both LHS and RHS becomes 1.

And this will continue until x = 99998 2 x = 99998*2 and so on.

Hence, we can see that

number of solutions = 99997 + k = 2 n 99998 ( k ) 100000 ( k 1 ) 99997 + \sum _{ k=2 }^{ n }{ 99998(k) } -\quad 100000\left( k-1 \right)

Now n for sigma operation can be found using the fact that we don't need negative values. So, n = 50000 and sigma operation further simplifies too.

number of solutions = 99997 + k = 2 n 99998 2 k 99997 + \sum _{ k=2 }^{ n }{ 99998 } -\quad 2k\quad

= 99997 + ( 100000 × 49999 ) 2 ( 50000 × 49999 2 1 ) 99997 + (100000\times 49999)\quad -\quad 2(\frac { 50000\times 49999 }{ 2 } -1)

= 2499949999 \boxed{2499949999}

nice way sir

Dev Sharma - 5 years, 6 months ago

Log in to reply

Smaller version of it is here . Enjoy !

Chirayu Bhardwaj - 4 years, 12 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...