|
|
|
|
2, 6, 8, 12, 16, 18, 22, 24, 28, 32, 34, 38, 42, 44, 48, 50, 54, 58, 60, 64, 66, 70, 74, 76, 80, 84, 86, 90, 92, 96, 100, 102, 106, 110, 112, 116, 118, 122, 126, 128, 132, 134, 138, 142, 144, 148, 152, 154, 158, 160, 164, 168, 170, 174, 176, 180, 184, 186
(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
a(n)=n+[ns/r]+[nt/r],
b(n)=n+[nr/s]+[nt/s],
c(n)=n+[nr/t]+[ns/t], where [ ]=floor.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 2*floor(n*r), where r = (1+sqrt(5))/2.
|
|
MATHEMATICA
|
r = 1; s = (-1 + 5^(1/2))/2; t = (1 + 5^(1/2))/2;
a[n_] := n + Floor[n*s/r] + Floor[n*t/r];
b[n_] := n + Floor[n*r/s] + Floor[n*t/s];
c[n_] := n + Floor[n*r/t] + Floor[n*s/t]
Table[a[n], {n, 1, 120}] (* A283233 *)
Table[b[n], {n, 1, 120}] (* A283234 *)
Table[c[n], {n, 1, 120}] (* A005408 *)
|
|
PROG
|
(Python)
from math import isqrt
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|