OFFSET
0,5
FORMULA
a(n) = round(n*(2-phi)).
a(n) = n - A101803(n).
EXAMPLE
a(0) = round(0*(2-phi)) = round(0) = 0.
a(1) = round(1*(2-phi)) = round(0.382) = 0.
a(2) = round(2*(2-phi)) = round(0.764) = 1.
MATHEMATICA
a[n_] := Round[n * (2 - GoldenRatio)]; Array[a, 72, 0] (* Amiram Eldar, Jun 14 2020 *)
PROG
(PARI) a(n) = round(n*(2-(1+sqrt(5))/2)); \\ Michel Marcus, Jun 14 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Aresh Pourkavoos, Apr 30 2020
STATUS
approved