Let it k≥1 be an integer. Define the sequence (an)n≥1 by a0=0,a1=1 and an+2=kan+1+anfor n≥0.
Let it p an odd prime number.
Denote m(p) as the smallest positive integer m such that p∣am.
Denote T(p) as the smallest positive integer T such that for every natural j we gave p∣(aT+j−aj). [list='i']
[*] Show that T(p)≤(p−1)⋅m(p).
[*] Show that if T(p)=(p−1)⋅m(p) then1≤j≤T(p)−1∏j≡0(modm(p))aj≡(−1)m(p)−1(modp) number theoryrecurrence relation