How many integers, between 1 and 2016 inclusive, can be represented in the form of ⌊ x ⌊ x ⌋ ⌋ for some positive x ?
Notation: ⌊ ⋅ ⌋ denotes the floor function .
Bonus: What if it's ⌊ x ⌊ x ⌊ x ⌋ ⌋ ⌋ instead of ⌊ x ⌊ x ⌋ ⌋ ?
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.
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 and k 3 + 2 k 2 − 2 are valid answers. The answer should be around 7 1 6 but frankly I haven't walked it through yet. Good job, though! (E.g.: 3 0 is between 3 3 = 2 7 and 3 3 + 2 ⋅ 3 2 − 2 = 4 3 but does not work. If x is a little bit smaller than 3 1 0 , like 3 . 3 , then ⌊ x ⌋ = 3 , ⌊ x ⌊ x ⌋ ⌋ = 9 , and ⌊ x ⌊ x ⌊ x ⌋ ⌋ ⌋ = 2 9 . Once x hits the 3 1 0 threshold, ⌊ x ⌊ x ⌋ ⌋ = 1 0 , making ⌊ x ⌊ x ⌊ x ⌋ ⌋ ⌋ = 3 3 . Numbers between 2 9 and 3 3 won't be reached.)
By definition, ⌊ x ⌋ ≤ x < ⌊ x ⌋ + 1 . Therefore, ⌊ x ⌋ 2 ≤ x ⌊ x ⌋ < ( ⌊ x ⌋ + 1 ) ⌊ x ⌋ . As both ⌊ x ⌋ 2 and ( ⌊ x ⌋ + 1 ) ⌊ x ⌋ are integers, ⌊ x ⌋ 2 ≤ ⌊ x ⌊ x ⌋ ⌋ < ( ⌊ x ⌋ + 1 ) ⌊ x ⌋ . Numbers between n 2 and n 2 + n − 1 , inclusive, are the answer, while n ∈ [ 1 , 4 4 ] , for 4 4 × 4 5 < 2 0 1 6 < 4 5 2 . That gives 1 + 2 + 3 + … + 4 4 = 2 4 5 × 4 4 = 9 9 0 numbers.
Problem Loading...
Note Loading...
Set Loading...
Let natural number n = ⌊ x ⌊ x ⌋ ⌋ , then we have:
n ⟹ ⌊ x ⌋ 2 ≤ n ⌊ x ⌋ 2 ≤ n = ⌊ x ⌊ x ⌋ ⌋ = ( ⌊ x ⌋ + { x } ) ⌊ x ⌋ < ( ⌊ x ⌋ + 1 ) ⌊ x ⌋ ≤ ⌊ x ⌋ 2 + ⌊ x ⌋ − 1 where 0 ≤ { x } < 1 is the fractional part of x .
Therefore, if natural number k = ⌊ x ⌋ , then for a k , the valid n 's are k 2 , k 2 + 1 , k 2 + 2 , . . . k 2 + k − 1 , that is a total k valid n 's. While the smallest k m i n = 1 , the largest k m a x = ⌊ 2 0 1 6 ⌋ = 4 4 . Then the number of n 's between 1 and 2016 inclusive is as follows:
N = k = 1 ∑ 4 4 k = 2 4 4 ( 4 4 + 1 ) = 9 9 0