OFFSET
1,1
EXAMPLE
For n=4: sequence is 2, 6, 3, 7, 11, 15, 5, 9, 3, 7, 11 ...
(2, 2+4, gpf(6), 3+4, 7+4, 11+4, gpf(15) etc.)
repeating period is (3, 7, 11, 15, 5, 9).
so a(4)=6.
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Finley (pfinley(AT)touro.edu), Oct 07 2007
STATUS
approved