Define a function .
Find the smallest value of
such that the
composite function
,
can be expressed as
for some positive integer
.
Submit your answer as .
Notation : denotes the floor function .
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.
Let n = k 2 + m , 2 k + 1 > m ≥ 0
Now, we get our hands dirty.
f ( n ) = k 2 + m + k
f ( f ( n ) ) = { k 2 + m + 2 k k 2 + m + 2 k + 1 if 0 ≤ m < k + 1 if k + 1 ≤ m < 2 k + 1
After this I am just writing, I am just writing the upper limits in the pieces the lower limits will change in a trivial manner because if they do then for that particular m the square term would have already come.
f 3 ( n ) = { k 2 + m + 3 k + 1 k 2 + m + 3 k + 2 if m < k + 1 if m < 2 k + 1
f 4 ( n ) = { k 2 + m + 4 k + 2 k 2 + m + 4 k + 4 if m < k + 1 if m < 2 k + 1
f 5 ( n ) = { k 2 + m + 5 k + 4 k 2 + m + 5 k + 6 if m < k + 1 if m < 2 k + 1
f 6 ( n ) = { k 2 + m + 6 k + 6 k 2 + m + 6 k + 9 if m < k + 1 if m < 2 k + 1
It is not hard to see a pattern as -
We conjecture that
f 2 t − 1 ( n ) = { k 2 + m + ( 2 t − 1 ) k + ( t − 1 ) 2 k 2 + m + ( 2 t − 1 ) k + t ( t − 1 ) if m < k + 1 if m < 2 k + 1
f 2 t ( n ) = { k 2 + m + ( 2 t ) k + t ( t − 1 ) k 2 + m + ( 2 t ) k + t 2 if m < k + 1 if m < 2 k + 1
We need such that f 2 t ( n ) or f 2 t − 1 ( n ) is a square number.
Let's check.
Case 1
k 2 + m + ( 2 t − 1 ) k + ( t − 1 ) 2 = ( k + t − 1 ) 2 + k + m cannot be a square.
k 2 + m + ( 2 t − 1 ) k + t 2 − t = ( k + t ) 2 + m − k − t . So, for t = m − k , we will get a square number.
There will exist a square number ∀ k + 1 ≤ m < 2 k + 1 at f 2 ( m − k ) − 1 ( n ) where n = k 2 + m
Case 2
k 2 + m + 2 t k + t ( t − 1 ) = ( k + t ) 2 + m − t . So, for t = m , we will get a square number
k 2 + m + 2 t k + t 2 cannot be a square in the given domain.
There will exist a square number ∀ 0 ≤ m < k + 1 at f 2 m ( n ) where n = k 2 + m
We can now conclude this(I have not yet proved our conjecture and will also not do it).
Conclusion
If f ( n ) = n + ⌊ n ⌋ . And n = k 2 + m ; 0 ≤ m < 2 k + 1 , then
the sequence f ( n ) , f 2 ( n ) , f 3 ( n ) , ⋯ will always contain square of an integer.
In fact, the first such square will occur at, and its value will respectively be:
{ at f 2 m ( n ) = ( k + m ) 2 at f 2 ( m − k ) − 1 ( n ) = m 2 if 0 ≤ m < k + 1 if k + 1 ≥ m < 2 k + 1