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