OFFSET
1,2
EXAMPLE
The first 6 terms of the sequence are 1,2,2,2,3,2,3. The number of positive integers <= 7 that are coprime to 1, 2 and 3 is three, these integers being 1, 5 and 7. So a(7) = 3.
MAPLE
a[1]:=1: for n from 2 to 105 do a[n]:=0: for j from 1 to n do if igcd(j, product(a[i], i=1..n-1))=1 then a[n]:=a[n]+1 else fi od: od: seq(a[n], n=1..105); # Emeric Deutsch, May 22 2007
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, May 04 2007
EXTENSIONS
More terms from Emeric Deutsch, May 22 2007
STATUS
approved