

A334415


Nearest integer to n*(2phi), where phi is the golden ratio (A001622).


2



0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 13, 13, 13, 14, 14, 15, 15, 15, 16, 16, 16, 17, 17, 18, 18, 18, 19, 19, 19, 20, 20, 21, 21, 21, 22, 22, 23, 23, 23, 24, 24, 24, 25, 25, 26, 26, 26, 27, 27
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

0,5


LINKS



FORMULA

a(n) = round(n*(2phi)).


EXAMPLE

a(0) = round(0*(2phi)) = round(0) = 0.
a(1) = round(1*(2phi)) = round(0.382) = 0.
a(2) = round(2*(2phi)) = 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



STATUS

approved



