OFFSET
0,4
LINKS
Ivan Neretin, Table of n, a(n) for n = 0..10000
EXAMPLE
a(5) + a(6) = 10. The number of positive integers <= 7 that are coprime to 10 is three, these integers being 1, 3 and 7. So a(7) = 3.
MAPLE
a[0]:=1: a[1]:=1: for n from 2 to 100 do ct:=0: for j from 1 to n do if igcd(j, a[n-1]+a[n-2])=1 then ct:=ct+1 else fi od: a[n]:=ct: od: seq(a[n], n=0..100); # Emeric Deutsch, May 07 2007
MATHEMATICA
nxt[{n_, a_, b_}]:={n+1, b, Count[Range[n+1], _?(CoprimeQ[a+b, #]&)]}; Transpose[ NestList[ nxt, {1, 1, 1}, 80]][[2]] (* Harvey P. Dale, Jan 21 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, May 04 2007
EXTENSIONS
More terms from Emeric Deutsch, May 07 2007
STATUS
approved