login
A195168
a(n) = 3*n - floor(n*r/3), where r=(1+sqrt(5))/2 (the golden ratio).
2
0, 3, 5, 8, 10, 13, 15, 18, 20, 23, 25, 28, 30, 32, 35, 37, 40, 42, 45, 47, 50, 52, 55, 57, 60, 62, 64, 67, 69, 72, 74, 77, 79, 82, 84, 87, 89, 92, 94, 96, 99, 101, 104, 106, 109, 111, 114, 116, 119, 121, 124, 126, 128, 131, 133, 136, 138, 141, 143, 146, 148
OFFSET
0,2
LINKS
MATHEMATICA
With[{c = GoldenRatio}, Table[3*n - Floor[c*n/3], {n, 0, 50}]] (* G. C. Greubel, Oct 31 2017 *)
PROG
(Magma) [3*n-Floor(n*(1+Sqrt(5))/6): n in [0..70]]; // Vincenzo Librandi, Sep 11 2011
(PARI) for(n=0, 50, print1(3*n - floor(n*(1+sqrt(5))/6), ", ")) \\ G. C. Greubel, Oct 31 2017
CROSSREFS
Sequence in context: A372780 A080754 A198083 * A332102 A047218 A029919
KEYWORD
nonn
AUTHOR
Clark Kimberling, Sep 10 2011
STATUS
approved