Question
Question: Consider a sequence $\{a_n\}$ with $a_1=2$ and $a_n = \frac{a_{n-1}^2}{a_{n-2}}$ (for all $n \ge 3$,...
Consider a sequence {an} with a1=2 and an=an−2an−12 (for all n≥3, terms of the sequence being distinct).
Given that a2 and a5 are positive integers and a5≤162 then the possible value(s) of a5 can be

2
32
64
162
32, 162
Solution
The recurrence relation an=an−2an−12 implies that the sequence {an} is a Geometric Progression (GP). Given a1=2, we have an=2rn−1, where r is the common ratio. Since a2=2r and a5=2r4 are positive integers, let 2r=k, where k is a positive integer. Thus, r=2k. Substituting this into a5, we get a5=2(2k)4=8k4. For a5 to be an integer, k4 must be divisible by 8, implying k is even. Let k=2m, where m is a positive integer. Then a5=8(2m)4=2m4. Given a5≤162, we have 2m4≤162, so m4≤81. Possible values for m are 1, 2, and 3.
- If m=1, a5=2(1)4=2. Then r=22(1)=1. The sequence becomes 2,2,2,..., which violates the distinct terms condition.
- If m=2, a5=2(2)4=32. Then r=22(2)=2. The sequence becomes 2,4,8,16,32,..., which has distinct terms.
- If m=3, a5=2(3)4=162. Then r=22(3)=3. The sequence becomes 2,6,18,54,162,..., which has distinct terms.
Therefore, the possible values of a5 are 32 and 162.