OFFSET
1,2
EXAMPLE
The sum of the first 8 terms of the sequence is 30. So a(9) is the number of positive integers <= 9 and coprime to 30. There are two such integers, 1 and 7. So a(9) = 2.
MAPLE
a[1]:=1: for n from 2 to 100 do ct:=0: for j from 1 to n do if gcd(j, sum(a[k], k=1..n-1))=1 then ct:=ct+1 else ct:=ct: fi od: a[n]:=ct: od: seq(a[n], n=1..100); # Emeric Deutsch, Apr 13 2007
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Mar 30 2007
EXTENSIONS
More terms from Emeric Deutsch, Apr 13 2007
STATUS
approved