DR.WANG Mathematics中文

2023 AIME II · Question 13

Geometry · trigonometric identity · recursion · units digit · algebra · number-theory

Problem outline

An acute angle AA satisfies tan⁡A=2cos⁡A\tan A=2\cos A. For how many integers 1≤n≤10001\le n\le1000 is sec⁡nA+tan⁡nA\sec^n A+\tan^n A an integer ending in 99?

Show answer and methods 1 methods

Answer

167

Method 1 First detect integrality, then iterate the last digit

Put s=sec⁡As=\sec A and t=tan⁡At=\tan A. Then st=2st=2, s2−t2=1s^2-t^2=1, s2+t2=17s^2+t^2=\sqrt{17}. For wj=s2j+t2jw_j=s^{2j}+t^{2j} these identities give w0=2w_0=2, w1=17w_1=\sqrt{17} and wj+2=17wj+1−4wjw_{j+2}=\sqrt{17}w_{j+1}-4w_j. Induction shows that even-index terms are integers and odd-index terms are positive integer multiples of 17\sqrt{17}.

For odd nn, (sn+tn)2=wn+2n+1(s^n+t^n)^2=w_n+2^{n+1} is irrational. For even nn the first step shows the sum is integral exactly when 4∣n4\mid n.

Write n=4kn=4k. Now xk=s4k+t4kx_k=s^{4k}+t^{4k} has x0=2,x1=9x_0=2,x_1=9 and xk+2=9xk+1−16xkx_{k+2}=9x_{k+1}-16x_k. Modulo 1010 the values start 2,9,9,7,9,92,9,9,7,9,9; the repeated pair forces period 9,9,79,9,7 from k=1k=1. Among 1≤k≤2501\le k\le250 all except the 8383 multiples of three work, giving 167167.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)