We have
an=a0+k=0∑n−1(ak+1−ak)=a0+k=0∑n−12⋅3k=a0+23−13n−1=a0−1+3n.
If a0=1, then an=3n and
ajkakj=3jk3kj=1,
so a0=1 is clearly a solution.
We now assume that a0=1 and write a0−1=x/y with coprime integers x and y with y>0.
We obtain
ajkakj=(yx+3j)k(yx+3k)j=(x+y3j)k(x+y3k)jyk−j∈Z.
We have gcd(x+y3j,y)=gcd(x,y)=1, which implies that
(x+y3j)k(x+y3k)j
is also an integer. This implies that
(x+3ky)k−j(x+3jy)k(x+3ky)j=(x+3jy)k(x+3ky)k=(x+3jyx+3ky)k
is an integer, too. If the kth power of a rational number is an integer, then the number itself has to be an integer. Therefore,
x+3jyx+3ky
is an integer. We now set k=j+1 and write
x+3jyx+3j+1y=3+x+3jy−2x.
As this is an integer by the above considerations, the second summand
x+3jy−2x
is also an integer. As y>0 by construction, the denominator is unbounded for j→∞, which results in x=0, i.e., a0=1.
We conclude that a0=1 is the only suitable initial value. □