login
A195122
a(n) = 2*n - floor(n*r/2), where r=(1+sqrt(5))/2.
1
0, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 33, 34, 35, 36, 37, 39, 40, 41, 42, 43, 45, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 58, 59, 60, 61, 62, 64, 65, 66, 67, 68, 70, 71, 72, 73, 74, 76, 77, 78, 79, 80, 81
OFFSET
0,2
LINKS
MATHEMATICA
Table[2*n - Floor[n*GoldenRatio/2], {n, 0, 50}] (* G. C. Greubel, Oct 30 2017 *)
PROG
(Magma) [2*n-Floor(n*(1+Sqrt(5))/4): n in [0..70]]; // Vincenzo Librandi, Sep 11 2011
(Maxima) makelist(2*n-floor(n*((1+sqrt(5))/2)/2), n, 0, 64); /* Martin Ettl, Oct 17 2012 */
(PARI) for(n=0, 50, print1(2*n - floor((1+sqrt(5))*n/4), ", ")) \\ G. C. Greubel, Oct 30 2017
CROSSREFS
Sequence in context: A172233 A189891 A032798 * A184520 A047248 A114024
KEYWORD
nonn
AUTHOR
Clark Kimberling, Sep 09 2011
STATUS
approved