a(n) = 2*floor((n+1)*phi) - 2*floor(n*phi) - 1 where phi = (1 + sqrt(5))/2 is the golden ratio.
A050141
a(n) = 2*floor((n+1)*phi) - 2*floor(n*phi) - 1 where phi = (1 + sqrt(5))/2 is the golden ratio.
Terms
- a(0) =3a(1) =1a(2) =3a(3) =3a(4) =1a(5) =3a(6) =1a(7) =3a(8) =3a(9) =1a(10) =3a(11) =3a(12) =1a(13) =3a(14) =1a(15) =3a(16) =3a(17) =1a(18) =3a(19) =1a(20) =3a(21) =3a(22) =1a(23) =3a(24) =3a(25) =1a(26) =3a(27) =1a(28) =3a(29) =3
External references
- oeis: A050141