login
A189467
a(n) = n + [n*r/s] + [n*t/s]; r=1, s=1+sqrt(2), t=1/2+sqrt(2).
3
1, 3, 6, 8, 10, 12, 14, 17, 19, 21, 23, 25, 28, 30, 32, 34, 37, 39, 41, 43, 45, 48, 50, 52, 54, 56, 59, 61, 63, 65, 67, 70, 72, 74, 76, 78, 81, 83, 85, 87, 89, 92, 94, 96, 98, 101, 103, 105, 107, 109, 112, 114, 116, 118, 120, 123, 125, 127, 129, 131, 134, 136, 138, 140, 142, 145, 147, 149, 151, 153, 156, 158, 160, 162, 165, 167, 169, 171, 173, 176, 178, 180, 182, 184
OFFSET
1,2
COMMENTS
See A189459.
LINKS
MATHEMATICA
r=1; s=1+2^(1/2); t=1/2+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}] (* A189459 *)
Table[g[n], {n, 1, 120}] (* A189467 *)
Table[h[n], {n, 1, 120}] (* A189468 *)
PROG
(PARI) for(n=1, 100, print1(n + floor(n/(1 + sqrt(2))) + floor(n*(1+2*sqrt(2))/(2+2*sqrt(2))), ", ")) \\ G. C. Greubel, Apr 13 2018
(Magma) [n + Floor(n/(1 + Sqrt(2))) + Floor(n*(1+2*Sqrt(2))/(2 + 2*Sqrt(2))) : n in [1..100]]; // G. C. Greubel, Apr 13 2018
CROSSREFS
Sequence in context: A258050 A185547 A112234 * A023983 A190058 A159061
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 22 2011
STATUS
approved