login
A189470
a(n) = n + [n*r/s] + [n*t/s]; r=1, s=1+sqrt(2), t=1+sqrt(3).
3
2, 4, 7, 9, 12, 14, 16, 20, 22, 25, 27, 29, 32, 34, 37, 40, 43, 45, 47, 50, 52, 55, 58, 60, 63, 65, 68, 70, 73, 75, 78, 81, 83, 86, 88, 90, 93, 96, 99, 101, 103, 106, 108, 111, 113, 117, 119, 121, 124, 126, 129, 131, 133, 137, 139, 142, 144, 147, 149, 151, 155, 157, 160, 162, 164, 167, 169, 172, 175, 177, 180, 182, 185, 187, 190, 193, 195, 198, 200, 203, 205, 207, 210, 213
OFFSET
1,1
COMMENTS
See A189469.
LINKS
MATHEMATICA
r=1; s=1+Sqrt[2]; t=1+Sqrt[3];
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}] (* A189469 *)
Table[g[n], {n, 1, 120}] (* A189470 *)
Table[h[n], {n, 1, 120}] (* A189471 *)
PROG
(PARI) for(n=1, 100, print1(n + floor(n/(1+sqrt(2))) + floor(n*(1+sqrt(3))/(1+sqrt(2))), ", ")) \\ G. C. Greubel, Apr 13 2018
(Magma) [n + Floor(n/(1+Sqrt(2))) + Floor(n*(1+Sqrt(3))/(1+Sqrt(2))): n in [1..100]]; // G. C. Greubel, Apr 13 2018
CROSSREFS
Sequence in context: A003151 A189939 A219637 * A189681 A329834 A059542
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 22 2011
STATUS
approved