Solution
The best way to solve this problem is to get the iterated part out of the exponent:
5(an+1−an)=n+321+1
5(an+1−an)=n+32n+35
5(an+1−an)=3n+23n+5
an+1−an=log5(3n+23n+5)
an+1−an=log5(3n+5)−log5(3n+2)
Plug in n=1,2,3,4 to see the first few terms of the sequence:
log55,log58,log511,log514.
We notice that the terms 5,8,11,14 are in arithmetic progression. Since a1=1=log55=log5(3(1)+2), we can easily use induction to show that an=log5(3n+2). So now we only need to find the next value of n that makes log5(3n+2) an integer. This means that 3n+2 must be a power of 5. We test 25:
3n+2=25
3n=23
This has no integral solutions, so we try 125:
3n+2=125
3n=123
n=041
Solution 2 (Telescoping)
We notice that by multiplying the equation from an arbitrary an all the way to a1, we get:
5an−a1=1+32n+32
This simplifies to
5an=3n+2.
We can now test powers of 5.
5 - that gives us n=1, which is useless.
25 - that gives a non-integer n.
125 - that gives n=41.
-integralarefun
Solution 3 (I did too many FE's)
The given recursion is equivalent to 3(n+1)+25an+1=3n+25an. By a simple inductive argument, the value 3k+25ak is constant for all naturals k. In particular, when k=1, the expression is equal to 1, so 3k+25ak=1 for all naturals k. Therefore, ak=log5(3k+2), and testing powers of 5 yields k=41 as the answer, which is when a41=log5(3⋅41+2)=log5(125)=3.
~ eevee9406