OFFSET
0,3
EXAMPLE
11 + a(10) = 21. There are 8 terms among a(0), a(1), ..., a(10) that are coprime to 21. (These terms are a(0), a(1), a(2), a(4), a(5), a(7), a(8) and a(10).) So a(11) = 8.
MAPLE
a[0]:=1: for n from 1 to 120 do ct:=0: for i from 0 to n-1 do if igcd(a[i], n+a[n-1])=1 then ct:=ct+1 else ct:=ct: fi: od: a[n]:=ct: od: seq(a[n], n=0..100); # Emeric Deutsch, May 05 2007
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Apr 16 2007
EXTENSIONS
More terms from Emeric Deutsch, May 05 2007
STATUS
approved