Floor & floor

How many integers, between 1 and 2016 inclusive, can be represented in the form of x x \lfloor x \lfloor x \rfloor \rfloor for some positive x x ?

Notation: \lfloor \cdot \rfloor denotes the floor function .

Bonus: What if it's x x x \lfloor x \lfloor x \lfloor x \rfloor \rfloor \rfloor instead of x x \lfloor x \lfloor x \rfloor \rfloor ?


The answer is 990.

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.

2 solutions

Chew-Seong Cheong
Nov 25, 2016

Let natural number n = x x n = \lfloor x \lfloor x \rfloor \rfloor , then we have:

n = x x = ( x + { x } ) x where 0 { x } < 1 is the fractional part of x . x 2 n < ( x + 1 ) x x 2 n x 2 + x 1 \begin{aligned} n & = \lfloor x \lfloor x \rfloor \rfloor \\ & = (\lfloor x \rfloor + {\color{#3D99F6}\{x\}}) \lfloor x \rfloor & \small \color{#3D99F6} \text{where } 0 \le \{x\} < 1 \text{ is the fractional part of }x. \\ \implies \lfloor x \rfloor ^2 \le n & {\color{#D61F06}<} (\lfloor x \rfloor + 1) \lfloor x \rfloor \\ \lfloor x \rfloor ^2 \le n & \le \lfloor x \rfloor ^2 + \lfloor x \rfloor - 1 \end{aligned}

Therefore, if natural number k = x k = \lfloor x \rfloor , then for a k k , the valid n n 's are k 2 , k 2 + 1 , k 2 + 2 , . . . k 2 + k 1 k^2, k^2+1, k^2+2, ... k^2+k-1 , that is a total k k valid n n 's. While the smallest k m i n = 1 k_{min}=1 , the largest k m a x = 2016 = 44 k_{max} = \lfloor \sqrt{2016} \rfloor = 44 . Then the number of n n 's between 1 and 2016 inclusive is as follows:

N = k = 1 44 k = 44 ( 44 + 1 ) 2 = 990 N = \displaystyle \sum_{k=1}^{44} k = \frac {44(44+1)}2 = \boxed{990}

Interesting thought for the bonus. However I believe the number you get is too big , as it seems that not all numbers between k 3 k^3 and k 3 + 2 k 2 2 k^3+2k^2-2 are valid answers. The answer should be around 716 716 but frankly I haven't walked it through yet. Good job, though! (E.g.: 30 30 is between 3 3 = 27 3^3=27 and 3 3 + 2 3 2 2 = 43 3^3+2 \cdot 3^2-2=43 but does not work. If x x is a little bit smaller than 10 3 \frac{10}{3} , like 3.3 3.3 , then x = 3 \lfloor x \rfloor =3 , x x = 9 \lfloor x \lfloor x \rfloor \rfloor =9 , and x x x = 29 \lfloor x \lfloor x \lfloor x \rfloor \rfloor \rfloor =29 . Once x x hits the 10 3 \frac{10}{3} threshold, x x = 10 \lfloor x \lfloor x \rfloor \rfloor =10 , making x x x = 33 \lfloor x \lfloor x \lfloor x \rfloor \rfloor \rfloor =33 . Numbers between 29 29 and 33 33 won't be reached.)

Lemuel Liverosk - 4 years, 6 months ago

Log in to reply

You are right.

Chew-Seong Cheong - 4 years, 6 months ago
Lemuel Liverosk
Nov 24, 2016

By definition, x x < x + 1 \lfloor x \rfloor ≤ x < \lfloor x \rfloor + 1 . Therefore, x 2 x x < ( x + 1 ) x \lfloor x \rfloor ^ 2 ≤ x \lfloor x \rfloor < (\lfloor x \rfloor + 1) \lfloor x \rfloor . As both x 2 \lfloor x \rfloor ^ 2 and ( x + 1 ) x (\lfloor x \rfloor + 1) \lfloor x \rfloor are integers, x 2 x x < ( x + 1 ) x \lfloor x \rfloor ^ 2 ≤ \lfloor x \lfloor x \rfloor \rfloor < (\lfloor x \rfloor + 1) \lfloor x \rfloor . Numbers between n 2 n^2 and n 2 + n 1 n^2+n-1 , inclusive, are the answer, while n [ 1 , 44 ] n \in [1,44] , for 44 × 45 < 2016 < 4 5 2 44 \times 45 < 2016 < 45^2 . That gives 1 + 2 + 3 + + 44 = 45 × 44 2 = 990 1+2+3+…+44=\frac{45 \times 44}{2}=990 numbers.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...