For a natural number N , define e ( N ) = ⎩ ⎪ ⎨ ⎪ ⎧ 0 ( N is odd. ) 1 ( N is even. )
For two natural numbers n , k and an integer x where − n + ⌊ 2 k + 1 ⌋ ≤ x ≤ n − ⌊ 2 k ⌋ ,
define a function A 2 n k ( x ) inductively as:
A 2 n k ( x ) = ⎩ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎧ A 2 n 1 ( x ) = ∣ 2 x − 1 ∣ ; A 2 n k + 1 ( x + e ( k ) ) = { A 2 n k ( x ) + A 2 n k ( x + 1 ) 0 ( x 2 + e ( k ) 2 = 0 ) ( x 2 + e ( k ) 2 = 0 )
Now let f ( n ) as the number of ordered pair ( k , x ) that satisfies A 2 n k ( x ) ≡ 0 ( m o d 6 7 ) , where ∣ x ∣ < 7 0 .
n → ∞ lim ⌊ g ( n ) f ( n ) + α + 5 ⌋ = 3 for some constant α and a polynomial function g ( n ) where g ( 0 ) = 0 .
α ≥ P if and only if Q < g ( 4 4 ) ≤ R , for some constants P , Q and R .
Find the value of P + Q + R .
Notation: ⌊ ⋅ ⌋ denotes the floor function .
This problem is a part of <Christmas Streak 2017> series .
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.
Problem Loading...
Note Loading...
Set Loading...
First off, let's list all A 2 n 1 ( x ) horizontally.
Now let's write the second line with A 2 n 2 ( x ) . It's same as writing the sum of two adjacent numbers of the first line below them, except 1 1.
Huh. Since we're looking for multiples of 6 7 , we can divide the whole second line by 4 , surely.
Oh wow, we just returned to the first line except the length is two less. Let's call these modified lines of A 2 n k ( x ) as B 2 n k ( x ) .
We infer that 0 only exists on the even line, where there is a total of 2 n lines, leading to a conclusion that we add n after counting the non-zero ones.
Now let's cut that table in half and look at the right side. It's symmetrical so we can just multiply 2 at the end.
Since ∣ x ∣ < 7 0 , the odd lines just can't contribute anything to f ( n ) , but the even lines can.
We note that the far right of B 2 n 2 k ( x ) is n − k , which should be bigger than or equal to 6 7 to produce 6 7 .
Then k ≤ n − 6 7 , and therefore there are n − 6 7 of k that satisfies the given condition. ( x is kinda fixed here!)
Now as we said, f ( n ) = 2 ( n − 6 7 ) + n = 3 n − 1 3 4 .
Since n → ∞ lim ⌊ g ( n ) 3 n − 1 3 4 + α + 5 ⌋ = 3 , we figure that g ( n ) = β n .
If α ≥ 1 2 9 , then 4 3 < β ≤ 1 , where if α < 1 2 9 then 4 3 ≤ β < 1 .
Therefore the case is the former, which, 3 3 < g ( 4 4 ) ≤ 4 4 .
So, we figure that P = 1 2 9 , Q = 3 3 , R = 4 4 so that P + Q + R = 2 0 6 .