OFFSET
1,1
EXAMPLE
Remainder 4 appears first as Mod[G[21],Pi[21]]= Mod[21-Pi[21]-1,Pi[21]]=Mod[21-8-1,8]=Mod[12,8]=4, so a(4)=21.
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 31 2002
STATUS
approved