Problem 1032: (2023 AIME II, 13)
Let $A$ be an acute angle such that $\tan A = 2 \cos A.$ Find the number of positive integers $n$ less than or equal to $1000$ such that $\sec^n A + \tan^n A$ is a positive integer whose units digit is $9.$
- Let $a=\sec A$, $b=\tan A$. Then $a^2-b^2=1$ and $ab=\frac{\sin A}{\cos^2A}=2$, so $a^2=\frac{1+\sqrt{17}}2$, $b^2=\frac{\sqrt{17}-1}2$.
- $a^4+b^4=17-8=9$ and $a^4b^4=16$, so $s_k=a^{4k}+b^{4k}$ are integers with $s_{k+1}=9s_k-16s_{k-1}$; for $n$ not a multiple of $4$, $a^n+b^n$ is irrational.
- The units digits of $s_1,s_2,s_3,\dots$ are $9,9,7,9,9,7,\dots$. Among $k=1,\dots,250$, those with $k\not\equiv0\pmod3$ number $167$.
- The answer is $\boxed{167}$.
Let $A$ be an acute angle such that $\tan A = 2 \cos A.$ Find the number of positive integers $n$ less than or equal to $1000$ such that $\sec^n A + \tan^n A$ is a positive integer whose units digit is $7.$