Equal Floor Functions

Find the number of positive integers x x which satisfiy

x 99 = x 101 . \left\lfloor \dfrac {x}{99} \right\rfloor = \left\lfloor \dfrac {x}{101} \right\rfloor .


The answer is 2499.

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

Arpon Paul
Oct 29, 2015

My approach was a bit mathematical rather than intuitive as Dev Sharma's.

Let, x 99 = x 101 = m \lfloor \frac{x}{99} \rfloor = \lfloor \frac{x}{101} \rfloor = m

By defination,

m x 99 < m + 1 m\leq\frac{x}{99}<m+1 [ m m is an integer]

99 m x < 99 ( m + 1 ) \implies 99m \leq x<99(m+1) ... ... ...(i)

Again,

m x 101 < m + 1 m\leq \frac{x}{101}<m+1

101 m x < 101 ( m + 1 ) \implies 101m\leq x<101(m+1) ... ... ...(ii)

Both (i) and (ii) inequalities are to be true, so 101 m x < 99 ( m + 1 ) 101m\leq x<99(m+1) Notice, if m > 49 m>49 , then 101 m > 99 ( m + 1 ) 101m>99(m+1) ;

So, for, m = 0 , 1 , 2 , 3 , . . . 49 m=0,1,2,3,...49 , the number of possible non-negative values for x x is,

m = 0 49 ( 99 m + 99 101 m ) = m = 0 49 ( 99 2 m ) = 99 × 50 2 × 49 × 50 2 = 2500 \displaystyle \sum_{m=0}^{49} (99m+99-101m)=\displaystyle \sum_{m=0}^{49} (99-2m)=99 \times 50 - 2 \times \frac{49 \times 50}{2} = 2500

But 0 0 is not a positive integer.

So the answer is 2500 1 = 2499 2500-1=2499 .

You might want to mention that since we're considering positive integers x x , we have m 0 m\geq 0 and for m 0 m\geq 0 , we have 99 m 101 m 99m\leq 101m and 99 ( m + 1 ) < 101 ( m + 1 ) 99(m+1)\lt 101(m+1) which is the reason for the intersection region being [ 101 m , 99 ( m + 1 ) ) \bigg[101m,99(m+1)\bigg) (although this might be too trivial).

Nonetheless, nicely written solution. Same as what I did. +1 :)

Prasun Biswas - 5 years, 7 months ago

Log in to reply

Isn't it highly overated ? see this

Chirayu Bhardwaj - 4 years, 12 months ago

Log in to reply

There are many problems on quizzes that are overrated.

Shishir Shahi - 3 years, 11 months ago
Dev Sharma
Oct 28, 2015

I used a simple logic as follows :

[ x / 99 ] = [ x / 101 ] = 0 [x/99]=[x/101]=0 only when x is 1,2,3,..,98 and simlarly it would work till 49. So now we can easily found the following sum :

98 + 97 + 95 + ... + 1 = 2499

"similarly it would work till 49"

And how exactly do you get the magic number 49 from? Just by looking at the equation? I don't see any explanation in your solution (you just wrote the solution set of x x when the floored values are 0 0 and claim that this works till the 50th such solution set (when the floored values are 49 49 ). Justifying this claim is what's required in a solution.

See Arpon Paul's solution which explains how we get the bounds for k k for the equation x / 99 = x / 101 = k Z 0 + \lfloor x/99\rfloor=\lfloor x/101\rfloor=k\in\Bbb{Z_0^+}

Prasun Biswas - 5 years, 7 months ago

Log in to reply

how you get this number 49 explain

hina saleem - 3 years, 8 months ago

Same Method but maybe you could elaborate it a bit for others to understand.

Kushagra Sahni - 5 years, 7 months ago

Log in to reply

Which part do you think, need more elaboration?

Dev Sharma - 5 years, 7 months ago

Yes, you are rigth. I also used the same way that it is first 98(1-98) then an A.P. from 97 to 1(By calculating for first terms and then observation) but Dev what do you want to say by it work till 49? Please can you elaborate.

Samarth Agarwal - 5 years, 7 months ago

Log in to reply

It means it will work till 49 terms because the 49th term is 1 and we have to calculate till there.

Kushagra Sahni - 5 years, 7 months ago

Log in to reply

@Kushagra Sahni Ok, got that. Thanks.

Samarth Agarwal - 5 years, 7 months ago

You can generalize it for some contstants also.

Priyanshu Mishra - 5 years, 7 months ago

No question that you got the right answer. But I'm not certain the way you wrote it up can be considered a complete solution.

Peter Byers - 5 years, 7 months ago

Same intuitive, logical approach!

Vinayak Verma - 5 years, 7 months ago

The sum of integers from 1 to 98 is not 2499, it is (n/2)*(98 + 1 ) =49 *99 = 4851, which is not the right answer. Ed Gray

Edwin Gray - 3 years, 1 month ago

Eh plus, how did u do it?

Israel Bablozi - 5 years, 7 months ago
Carsten Meyer
Sep 10, 2019

Decompose x x in base 99 99 and 101 101 : \[\begin{align} \left.\begin{aligned} x&\overset{!}{=}99q_1+r_1\\ x&\overset{!}{=}101q_2+r_2 \end{aligned}\right\}&&

\Rightarrow&& q_1&=\left\lfloor\frac{x}{99}\right\rfloor=\left\lfloor\frac{x}{101}\right\rfloor=q_2,&&&r_1&\in\{0;\ldots;98\},&r_2&\in\{0;\ldots;100\} \end{align}\] The two decompositions of x x have to be equal: 99 q 1 + r 1 = x = 101 q 2 + r 2 q 1 = q 2 = : q r 1 = r 2 + 2 q , q 0 \begin{aligned} 99q_1+r_1=x&=101q_2+r_2&\underset{q_1=q_2=:q}{\Rightarrow}&&r_1&=r_2+2q,&q\geq 0 \end{aligned}

  • If q = 0 q=0 , the remainders are equal. Excluding the case r 1 = r 2 = 0 r_1=r_2=0 because x x has to be positive, the boundaries for r 1 r_1 yield 98 98 solutions.
  • If q > 0 q>0 , the boundaries of r 2 r_2 depend on q q : r 1 = r 2 + 2 q { 0 ; ; 98 } 1 q 49 , 0 r 2 98 2 q \begin{aligned} r_1&=r_2+2q\in\{0;\ldots;98\}&\Rightarrow&&1\leq q&\leq 49,&0\leq r_2&\leq 98-2q \end{aligned}
  • Sum up all cases, beware of "off-by-1 errors": 98 + q = 1 49 r 2 = 0 98 2 q 1 = 98 + q = 1 49 99 2 q = 98 + 49 99 2 49 ( 49 + 1 ) 2 = 2499 98 + \sum_{q=1}^{49}\sum_{r_2=0}^{98-2q}1=98 + \sum_{q=1}^{49}99-2q=98+49\cdot 99-\cancel{2}\cdot\frac{49(49+1)}{\cancel{2}}=\boxed{2499}

1 pending report

Vote up reports you agree with

×

Problem Loading...

Note Loading...

Set Loading...