OFFSET
0,3
EXAMPLE
The largest term among terms a(0) through a(9) is a(6)=4. GCD(4,10)=2. So a(10) is the number of earlier terms equal to 2. a(2) =a(3) =a(4) =a(5) =a(7) =2. So a(10) = 5.
MATHEMATICA
f[l_List] :=Append[l, Count[l, GCD[Max[l], Length[l]]]]; Nest[f, {1}, 105] (* Ray Chandler, Oct 16 2006 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Oct 15 2006
EXTENSIONS
Extended by Ray Chandler, Oct 16 2006
STATUS
approved