OFFSET
1,1
COMMENTS
First differences have a cycle {5,16,5,1,2,13}.
FORMULA
a(1)=11, a(2)=16, a(3)=32, a(4)=37, a(5)=38, a(6)=40; n>=7: a(n)=a(n-6)+42.
EXAMPLE
11^11=285311670611=7*40758810087+2,
16^16=18446744073709551616=7*2635249153387078802+2.
MATHEMATICA
Select[Range[500], PowerMod[ #, #, 7]==2&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Apr 14 2007
STATUS
approved