login
A189382
a(n) = n + [n*r/t] + [n*s/t]; r=1, s=-1+sqrt(2), t=1+sqrt(2).
3
1, 2, 4, 5, 7, 9, 10, 12, 13, 15, 16, 18, 20, 21, 23, 24, 26, 28, 29, 31, 32, 34, 35, 37, 39, 40, 42, 43, 45, 47, 48, 50, 51, 53, 55, 56, 58, 59, 61, 62, 64, 66, 67, 69, 70, 72, 74, 75, 77, 78, 80, 81, 83, 85, 86, 88, 89, 91, 93, 94, 96, 97, 99, 100, 102, 104, 105, 107, 108, 110, 112, 113, 115, 116, 118, 120, 121, 123, 124, 126, 127, 129, 131, 132, 134
OFFSET
1,2
COMMENTS
See A189380.
LINKS
MATHEMATICA
r=1; s=-1+2^(1/2); t=1+2^(1/2);
f[n_] := n + Floor[n*s/r] + Floor[n*t/r];
g[n_] := n + Floor[n*r/s] + Floor[n*t/s];
h[n_] := n + Floor[n*r/t] + Floor[n*s/t]
Table[f[n], {n, 1, 120}] (* A189380 *)
Table[g[n], {n, 1, 120}] (* A189381 *)
Table[h[n], {n, 1, 120}] (* A189382 *)
PROG
(PARI) for(n=1, 100, print1(n + floor(n/(sqrt(2)+1)) + floor(n*(sqrt(2)-1)/(sqrt(2)+1)), ", ")) \\ G. C. Greubel, Apr 20 2018
(Magma) [n + Floor(n/(Sqrt(2)+1)) + Floor(n*(Sqrt(2)-1)/(Sqrt(2)+1)): n in [1..100]]; // G. C. Greubel, Apr 20 2018
CROSSREFS
Sequence in context: A243118 A289240 A188019 * A087063 A047497 A004956
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 20 2011
STATUS
approved