cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-5 of 5 results.

A189361 a(n) = n + floor(n*s/r) + floor(n*t/r); r=1, s=sqrt(2), t=sqrt(3).

Original entry on oeis.org

3, 7, 12, 15, 20, 24, 28, 32, 36, 41, 45, 48, 53, 57, 61, 65, 70, 74, 77, 82, 86, 91, 94, 98, 103, 107, 111, 115, 120, 123, 127, 132, 136, 140, 144, 148, 153, 156, 161, 165, 169, 173, 177, 182, 185, 190, 194, 198, 202, 206, 211, 215, 218, 223, 227, 231, 235, 240, 244, 247, 252, 256, 261, 264, 268, 273, 277, 281, 285, 289, 293, 297, 302, 306, 310, 314, 318, 323, 326, 331, 335, 339, 343
Offset: 1

Views

Author

Clark Kimberling, Apr 20 2011

Keywords

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 + [n*s/r] + [n*t/r],
b(n) = n + [n*r/s] + [n*t/s],
c(n) = n + [n*r/t] + [n*s/t], where []=floor.
Taking r=1, s=sqrt(2), t=sqrt(3) gives

Crossrefs

Programs

  • Mathematica
    r = 1; s = 2^(1/2); t = 3^(1/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}]  (*A189361*)
    Table[b[n], {n, 1, 120}]  (*A189362*)
    Table[c[n], {n, 1, 120}]  (*A189363*)

A189383 a(n) = n + [n*s/r] + [n*t/r]; r=1, s=1/sqrt(2), t=1/sqrt(3).

Original entry on oeis.org

1, 4, 6, 8, 10, 13, 15, 17, 20, 22, 24, 26, 29, 31, 33, 36, 38, 40, 42, 45, 47, 49, 52, 53, 56, 59, 61, 63, 65, 68, 69, 72, 75, 77, 79, 81, 84, 85, 88, 91, 92, 95, 97, 100, 101, 104, 107, 108, 111, 113, 116, 118, 120, 123, 124, 127, 129, 132, 134, 136, 139, 140, 143, 145, 147, 150, 152, 155, 156, 159, 161, 163, 166, 168, 171, 172, 175, 178, 179, 182, 184, 186, 188, 191
Offset: 1

Views

Author

Clark Kimberling, Apr 21 2011

Keywords

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 + [n*s/r] + [n*t/r],
b(n) = n + [n*r/s] + [n*t/s],
c(n) = n + [n*r/t] + [n*s/t], where []=floor.
Taking r=1, s=1/sqrt(2), t=1/sqrt(3) gives

Crossrefs

Programs

  • Mathematica
    r=1; s=2^(-1/2); t=3^(-1/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}]  (*A189383*)
    Table[b[n], {n, 1, 120}]  (*A189384*)
    Table[c[n], {n, 1, 120}]  (*A189385*)

A189395 a(n) = n + [n*s/r] + [n*t/r]; r=1, s=1/sqrt(2), t=sqrt(3).

Original entry on oeis.org

2, 6, 10, 12, 16, 20, 23, 26, 30, 34, 37, 40, 44, 47, 50, 54, 58, 61, 64, 68, 71, 75, 78, 81, 85, 89, 92, 95, 99, 102, 105, 109, 113, 116, 119, 123, 127, 129, 133, 137, 140, 143, 147, 151, 153, 157, 161, 164, 167, 171, 175, 178, 181, 185, 188, 191, 195, 199, 202, 205, 209, 212, 216, 219, 222, 226, 230, 233, 236, 240, 243, 246, 250, 254, 257, 260, 264, 268, 270, 274, 278, 281, 284
Offset: 1

Views

Author

Clark Kimberling, Apr 21 2011

Keywords

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 + [n*s/r] + [n*t/r],
b(n) = n + [n*r/s] + [n*t/s],
c(n) = n + [n*r/t] + [n*s/t], where []=floor.
Taking r=1, s=1/sqrt(2), t=sqrt(3) gives

Crossrefs

Programs

  • Mathematica
    r=1; s=2^(-1/2); t=3^(1/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}]  (*A189395*)
    Table[b[n], {n, 1, 120}]  (*A189396*)
    Table[c[n], {n, 1, 120}]  (*A189397*)

A189387 a(n) = n+[nr/s]+[nt/s]; r=1, s=sqrt(2), t=1/sqrt(3).

Original entry on oeis.org

1, 3, 6, 7, 10, 12, 13, 16, 18, 21, 22, 24, 27, 28, 31, 33, 35, 37, 39, 42, 43, 45, 48, 49, 52, 54, 57, 58, 60, 63, 64, 67, 69, 71, 73, 75, 78, 79, 81, 84, 85, 88, 90, 92, 94, 96, 99, 100, 103, 105, 107, 109, 111, 114, 115, 117, 120, 122, 124, 126, 128, 130, 132, 135, 136, 138, 141, 143, 145, 147, 149, 151, 153, 156, 158, 160, 162, 164, 166, 168, 171, 172, 174, 177
Offset: 1

Views

Author

Clark Kimberling, Apr 21 2011

Keywords

Comments

See A189386.

Crossrefs

Programs

  • Mathematica
    r=1; s=2^(1/2); t=3^(-1/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}]  (*A189386*)
    Table[b[n], {n, 1, 120}]  (*A189387*)
    Table[c[n], {n, 1, 120}]  (*A189388*)

A189388 a(n) = n+[nr/t]+[ns/t]; r=1, s=sqrt(2), t=1/sqrt(3).

Original entry on oeis.org

4, 9, 15, 19, 25, 30, 36, 40, 46, 51, 56, 61, 66, 72, 76, 82, 87, 93, 97, 102, 108, 113, 118, 123, 129, 134, 139, 144, 150, 154, 159, 165, 170, 175, 180, 186, 191, 196, 201, 206, 212, 216, 222, 227, 232, 237, 243, 248, 253, 258, 263, 269, 273, 279, 284, 289, 294, 300, 305, 309, 315, 320, 326, 330, 336, 341, 347, 351, 357, 362, 366, 372, 377, 383, 387, 393, 398, 404, 408, 413, 419, 424, 429
Offset: 1

Views

Author

Clark Kimberling, Apr 21 2011

Keywords

Crossrefs

Programs

  • Mathematica
    r=1; s=2^(1/2); t=3^(-1/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}]  (*A189386*)
    Table[b[n], {n, 1, 120}]  (*A189387*)
    Table[c[n], {n, 1, 120}]  (*A189388*)
Showing 1-5 of 5 results.