Let be a function such that , and for all positive integers and . Find the number of odd integers such that .
Details and assumptions
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.
We need to find the number of integers k such that f ( 2 k + 1 ) = 2 0 1 5 ⟹ f ( k ) + f ( k + 1 ) = 2 0 1 5 .
Claim 1: g cd ( f ( n ) , f ( n + 1 ) ) = 1 for all n ∈ N
Proof: Use strong induction. The base cases can be manually verified. Now, suppose n is even, say n = 2 k . Then, f ( n + 1 ) = f ( k ) + f ( k + 1 ) and f ( n ) = f ( k ) , so g cd ( f ( n ) , f ( n + 1 ) ) = g cd ( f ( k ) , f ( k + 1 ) ) , which is equal to 1 by the inductive hypothesis. Now suppose n is odd, say n = 2 k + 1 . Then, f ( n ) = f ( k ) + f ( k + 1 ) and f ( n + 1 ) = f ( k + 1 ) , so g cd ( f ( n ) , f ( n + 1 ) ) = g cd ( f ( k ) , f ( k + 1 ) ) = 1 . ■
Claim 2: For all integers a and b such that g cd ( a , b ) = 1 , there exists a unique n such that f ( n ) = a , f ( n + 1 ) = b .
Proof: Use strong double induction on a and b . For the base case ( a , b ) = ( 1 , 1 ) , note that if t is an odd integer > 1 , for all k , f ( 2 k t ) = f ( t ) = f ( ( t − 1 ) / 2 ) + f ( ( t + 1 ) / 2 ) > 1 , so f ( n ) = 1 if and only if n is a power of 2 , and the only consecutive powers of 2 are 2 0 and 2 1 .
Suppose the claim holds true for all 1 ≤ a ≤ i and b = 1 . Suppose m is the unique integer such that f ( m ) = a , f ( m + 1 ) = 1 . Then, note that f ( 2 m + 1 ) = a + 1 , f ( 2 m + 2 ) = 1 . Again, if there existed another integer t such that f ( t ) = a + 1 , f ( t + 1 ) = 1 , then we would have f ( t − 1 ) / 2 ) = f ( t ) − f ( t + 1 ) = a (note that since t + 1 must be a power of 2 , t is odd), so the uniqueness of m implies 2 t − 1 = m ⟹ t = 2 m + 1 , so 2 m + 1 is the unique integer such that f ( 2 m + 1 ) = a + 1 , f ( 2 m + 2 ) = 1 . Thus, our claim holds true for all integers a when b = 1 .
For some a , let m be the unique integer such that f ( m ) = a , f ( m + 1 ) = b . Then, by the mimicking the logic, as in the first paragraph 2 m is the unique integer such that f ( 2 m ) = a , f ( 2 m + 1 ) = a + b and 2 m + 1 is the unique integer such that f ( 2 m + 1 ) = a + b , f ( 2 m + 2 ) = b . Note that g cd ( a , a + b ) = g cd ( a , b ) = 1 . Thus, if the claim us true for a pair ( a , b ) where g cd ( a , b ) = 1 , it must also be true for the pairs ( a , a + b ) and ( a + b , a ) .
Consider any co prime pair ( p , q ) .If q > p , by our inductive hypothesis, the claim is true for ( p , q − p ) , and hence, must also be true for ( p , q − p + p ) = ( p , q ) . We similarly prove the case when p > q . ■
By the claims, the answer is simply the number of integers a , b such that a + b = 2 0 1 5 and g cd ( a , b ) = 1 . Since g cd ( a , b ) = g cd ( a , a + b ) = g cd ( a , 2 0 1 5 ) , this is simply the number of integers < 2 0 1 5 and coprime to 2 0 1 5 , which is simply φ ( 2 0 1 5 ) = 1 4 4 0 .