login
A195174
a(n) = 5*n - floor(3*n*r), where r=(1+sqrt(5))/2 (the golden ratio.)
1
0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13
OFFSET
0,8
LINKS
MATHEMATICA
Table[5n-Floor[3n GoldenRatio], {n, 0, 90}] (* Harvey P. Dale, Sep 10 2014 *)
PROG
(Magma) [5*n-Floor(3*n*(1+Sqrt(5))/2): n in [0..70]]; // Vincenzo Librandi, Sep 11 2011
(PARI) for(n=0, 50, print1(5*n - floor(3*n*(1+sqrt(5))/2), ", ")) \\ G. C. Greubel, Oct 31 2017
CROSSREFS
Sequence in context: A226046 A133877 A132270 * A187185 A054896 A052364
KEYWORD
nonn
AUTHOR
Clark Kimberling, Sep 10 2011
EXTENSIONS
Offset changed from 1 to 0 by Vincenzo Librandi, Sep 11 2011
STATUS
approved