proposed
approved
proposed
approved
editing
proposed
Cf. A000010 (number of positive numbers <= n that are coprime to n).
proposed
editing
editing
proposed
a(0)=a(1)=1. For n >= 2, a(n) = number of positive numbers <= n that are coprime to a(n-1) + a(n-2).
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.
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
approved
editing
proposed
approved
editing
proposed
Ivan Neretin, <a href="/A128332/b128332.txt">Table of n, a(n) for n = 0..10000</a>
approved
editing
editing
approved
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 *)
approved
editing