A195176 a(n) = 3*n - floor(n*sqrt(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
Keywords
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Programs
-
Magma
[3*n-Floor(n*(Sqrt(2))): n in [0..70]]; // Vincenzo Librandi, Sep 12 2011
-
Mathematica
With[{c = Sqrt[2]},Table[3*n - Floor[c*n],{n,0,50}]] (* G. C. Greubel, Oct 31 2017 *)
-
PARI
for(n=0,50, print1(3*n - floor(n*sqrt(2)), ", ")) \\ G. C. Greubel, Oct 31 2017