login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A195181
a(n) = 6*n - floor(3*n*sqrt(3)).
1
0, 1, 2, 3, 4, 5, 5, 6, 7, 8, 9, 9, 10, 11, 12, 13, 13, 14, 15, 16, 17, 17, 18, 19, 20, 21, 21, 22, 23, 24, 25, 25, 26, 27, 28, 29, 29, 30, 31, 32, 33, 33, 34, 35, 36, 37, 37, 38, 39, 40, 41, 41, 42, 43, 44, 45, 46, 46, 47, 48, 49, 50, 50, 51, 52, 53, 54, 54, 55, 56
OFFSET
0,3
LINKS
FORMULA
a(n) = A195120(3*n). - R. J. Mathar, Sep 11 2011
MAPLE
A195181:=n->6*n-floor(3*n*sqrt(3)): seq(A195181(n), n=0..150); # Wesley Ivan Hurt, Jan 21 2017
MATHEMATICA
Table[6*n - Floor[3*n*Sqrt[3]], {n, 0, 50}] (* G. C. Greubel, Nov 01 2017 *)
PROG
(Magma) [6*n-Floor(3*n*Sqrt(3)): n in [0..70]]; // Vincenzo Librandi, Sep 12 2011
(PARI) for(n=0, 50, print1(6*n - floor(3*n*sqrt(3)), ", ")) \\ G. C. Greubel, Nov 01 2017
CROSSREFS
Cf. A195120.
Sequence in context: A123731 A247973 A352241 * A003005 A332204 A245321
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Sep 10 2011
STATUS
approved