login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A189459 a(n) = n + [n*s/r] + [n*t/r]; r=1, s=1+sqrt(2), t=1/2+sqrt(2). 3
4, 9, 15, 20, 26, 31, 36, 42, 47, 53, 58, 62, 68, 73, 79, 84, 90, 95, 100, 106, 111, 117, 122, 126, 132, 137, 143, 148, 154, 159, 164, 170, 175, 181, 185, 190, 196, 201, 207, 212, 217, 223, 228, 234, 239, 245, 249, 254, 260, 265, 271, 276, 281, 287, 292, 298, 303, 309, 313, 318, 324, 329, 335, 340, 345, 351, 356, 362, 367, 371, 377, 382, 388, 393, 399, 404, 409, 415, 420, 426, 431, 435, 441 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
This is one of three sequences that partition the positive integers. In general, suppose that r, s, t are positive real numbers for which the sets {i/r: i>=1}, {j/s: j>=1}, {k/t: k>=1} are pairwise disjoint. Let a(n) be the rank of n/r when all the numbers in the three sets are jointly ranked. Define b(n) and c(n) as the ranks of n/s and n/t. It is easy to prove that
f(n) = n + [n*s/r] + [n*t/r],
g(n) = n + [n*r/s] + [n*t/s],
h(n) = n + [n*r/t] + [n*s/t], where []=floor.
Taking r=1, s=1+sqrt(2), t=1/2+sqrt(2) gives f=A189459, g=A189467, h=A189468.
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), ", ")) \\ G. C. Greubel, Apr 13 2018
(Magma) [n + Floor(n*(1 + Sqrt(2))) + Floor(n*(1 + 2*Sqrt(2))/2): n in [1..100]]; // G. C. Greubel, Apr 13 2018
CROSSREFS
Sequence in context: A313269 A313270 A313271 * A313272 A301680 A281590
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 22 2011
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)