OFFSET
0,2
EXAMPLE
The terms of the sequence, among terms a(0) through a(5), which are coprime to 6 are a(0)=1 and a(3)=5. So a(6) = a(5) + 1*5 = 31.
MATHEMATICA
f[l_List] := Append[l, l[[ -1]] + Times @@ Select[l, GCD[ #, Length[l]] == 1 &]]; Nest[f, {1}, 13] (* Ray Chandler, Jan 06 2007 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jan 04 2007
EXTENSIONS
Extended by Ray Chandler, Jan 06 2007
STATUS
approved