Problem:
Let A be an acute angle such that tanA=2cosA. Find the number of positive integers n less than or equal to 1000 such that secnA+tannA is a positive integer whose units digit is 9.
Solution:
Answer (167):
Let anβ=secnA+tannA and let s and c denote sinA and cosA, respectively. Because angle A is acute, it follows that s,c>0. Then csβ=2c, so s=2(1βs2) and s=417ββ1β. Thus tanA=2c=217ββ1ββ and tanAβ secA=2. It follows that
If n is an even integer not divisible by 4 , then n=4k+2 for some nonnegative integer k and
anβ=22k+1(17β+1)2k+1+(17ββ1)2k+1β
When the two powers in the numerator of this fraction are expanded using the Binomial Theorem, the terms with even powers of 17β will cancel, leaving a positive integer multiple of 17β. Therefore anβ is not a rational number when nβ‘2(mod4).
If n is an odd integer, it follows immediately from the previous case and the following identity that anβ is not a rational number:
an2β=(secnA+tannA)2=a2nβ+2n+1
If n is a multiple of 4 , then consider the sequence bkβ=a4kβ. Then
bkβ=a4kβ=(29+17ββ)k+(29β17ββ)k.
Note that bkβ satisfies the simple recursion bkβ=9bkβ1ββ16bkβ2β, with b0β=2 and b1β=9. Hence bkβ is an integer for all k and
bkββ‘4bkβ2ββbkβ1β(mod10)
Computing several more terms modulo 10 yields b2ββ‘4β 2β9β‘9,b3ββ‘4β 9β9β‘7,b4ββ‘4β 9β7β‘9, and b5ββ‘4β 7β9β‘9. Hence for k>0,bkβ is the repeating sequence 9,9,7, with period 3. There are 250 such bkβ consisting of 83 cycles and one 9 left over for a total of 2β 83+1=167 values of n satisfying the required conditions.