How many distinct integers can be expressed in the form ⌊ 2 0 1 5 n 2 ⌋ , where n is an integer satisfying 1 ≤ n ≤ 4 0 3 0 ?
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.
Excellent solution, Akshat. Very well written.
why do you take 1007?
Log in to reply
Solve 2 0 1 5 ( n + 1 ) 2 − 2 0 1 5 n 2 ≥ 1 ⟹ n ≥ 1 0 0 7 Thus every number after 1007 has a distinct value.
Excellent solution.
This solution is not complete as yet. Can you find the gap?
FYI I added the word positive in "all positive integer values less than a 1 0 0 6 .
Log in to reply
What's the gap? Actually I also took the same procedure so I have some gaps too in solving.
Log in to reply
Hm, if I recall correctly. I think the third paragraph previously stated a n ≤ a n + 1 instead of a n + 1 ≤ a n + 1 .
With a n + 1 ≤ a n + 1 , the proof works with the additional clarification of why a n = a n + 1 or a n + 1 − 1 , which would explain why we have that a i is a sequence that contains 1 to 502.
I believe that he had all of these ideas in his head, but they were just not written down in the solution.
Since the n increment verification is ever increasing or staying, consecutively in an ascending order:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
Initial count is 1. Total change determined = 3526. Therefore, total distinct = 3527.
Answer: 3 5 2 7
Till n=1008 the function will assume all numbers from 0 to 504. after that all other n will generate a distinct number. Therefore the answer must be [505+(4030-1008)]= 3527. We might arrive at the above conclusion by noticing that till [ (n+1)^2 - (n^2)] is less than equal to 2015 the function will generate all numbers because the difference of [{(n+1)^2}/2015] and [{n^2}/2015] will be less than 1 and hence no number will be skipped. Now by putting the obtained value "1008" in the function we get the value "504". After n=1008 the difference between consecutive terms will be greater than 1 and hence each time a new number will be generated.
Here {}, [] signify normal brackets.
Problem Loading...
Note Loading...
Set Loading...
Let, a n = ⌊ 2 0 1 5 n 2 ⌋
Because 4 4 2 = 1 9 3 6 < 2 0 1 5 < 4 5 2 = 2 0 2 5 we can conclude that a 1 , a 2 , a 3 , … , a 4 4 = 0 .
For positive integers n ≥ 1 0 0 7 , since 2 0 1 5 ( n + 1 ) 2 − 2 0 1 5 n 2 = 2 0 1 5 2 n + 1 ≥ 1 , it follows that a n < a m + 1 . Hence a 1 0 0 7 , a 1 0 0 8 , … , a 4 0 3 0 take distinct values.
For positive integers n < 1 0 0 7 , since 2 0 1 5 ( n + 1 ) 2 − 2 0 1 5 n 2 = 2 0 1 5 2 n + 1 < 1 , it follows that a n + 1 ≤ a n + 1 . Note that this sequence is clearly non-decreasing. We can conclude that all positive integer values less than a 1 0 0 6 have been taken.
Finally we compute that a 1 0 0 6 = 5 0 2 .
Therefore, our answer is answer = 5 0 3 + 3 0 2 4 = 3 5 2 7 (namely, the values 0 , 1 , 2 , … , 5 0 2 , a 1 0 0 7 , a 1 0 0 8 , … , a 4 0 3 0 ).