OFFSET
1,2
COMMENTS
a(n) = 2 for n's: 2, 4, 5, 7, 8, 10, 11, 13, 14, 16, 17, 23, 36, 45, 50, 53, 56, 59, 60, 64, 78, 82, 86, ....
First occurrence of k: 1, 2, 19, 27, 6, 52, 9, 186, 12, 79, 15, 255, 18, 107, 34, 22, 26, 33, 48, 134, 205, 42, 44, 381, 51, ....
MATHEMATICA
f[s_List] := Block[{}, Append[s, Count[ Mod[ s[[ -1]] + s[[ -2]], s], 0]]]; Nest[f, {1, 2}, 85] (* Robert G. Wilson v *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v and Leroy Quet, Apr 29 2007
STATUS
approved