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”).

A195176
a(n) = 3*n - floor(n*sqrt(2)).
2
0, 2, 4, 5, 7, 8, 10, 12, 13, 15, 16, 18, 20, 21, 23, 24, 26, 27, 29, 31, 32, 34, 35, 37, 39, 40, 42, 43, 45, 46, 48, 50, 51, 53, 54, 56, 58, 59, 61, 62, 64, 66, 67, 69, 70, 72, 73, 75, 77, 78, 80, 81, 83, 85, 86, 88, 89, 91, 92, 94, 96, 97, 99, 100, 102, 104, 105
OFFSET
0,2
LINKS
MATHEMATICA
With[{c = Sqrt[2]}, Table[3*n - Floor[c*n], {n, 0, 50}]] (* G. C. Greubel, Oct 31 2017 *)
PROG
(Magma) [3*n-Floor(n*(Sqrt(2))): n in [0..70]]; // Vincenzo Librandi, Sep 12 2011
(PARI) for(n=0, 50, print1(3*n - floor(n*sqrt(2)), ", ")) \\ G. C. Greubel, Oct 31 2017
CROSSREFS
Sequence in context: A139449 A204399 A020914 * A195126 A047496 A223735
KEYWORD
nonn
AUTHOR
Clark Kimberling, Sep 10 2011
STATUS
approved