Let a1,a2,a3,⋯ be the sequence of positive integers such that a1=1,ak+1=ak3+1, for all positive integers k.
Prove that for every prime number p of the form 3l+2, where l is a non-negative integer ,there exists a positive integer n such that an is divisible by p. number theorylegandre symbol