For positive integer , define functions and as above.
How many positive integers less than 2015 such that ?
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.
If n is a perfect square, say n = m 2 , then f ( m 2 ) = g ( m 2 ) = m . If this is not the case, set n = m 2 + k , where 0 < k < 2 m + 1 . We then have:
f ( m 2 + k ) = ⌊ ⌊ m 2 + k ⌋ m 2 + k ⌋ = ⌊ m m 2 + k ⌋ = m + ⌊ m k ⌋ g ( m 2 + k ) = ⌈ ⌈ m 2 + k ⌉ m 2 + k ⌉ = ⌈ m + 1 m 2 + k ⌉ = m − 1 + ⌈ m + 1 k + 1 ⌉
Thus, f ( n ) = g ( n ) for all positive integers n which are of the form m 2 + m or m 2 + 2 m for some integer m .
For integer m , we have 0 < m 2 + m < 2 0 1 5 when 1 ≤ m ≤ 4 4 and 0 < m 2 + 2 m < 2 0 1 5 when 1 ≤ m ≤ 4 3 .
So, there are 8 7 positive integers n satisfied.