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-4 of 4 results.

A206805 Position of 2^n when {2^j} and {3^k} are jointly ranked; complement of A206807.

Original entry on oeis.org

1, 3, 4, 6, 8, 9, 11, 13, 14, 16, 17, 19, 21, 22, 24, 26, 27, 29, 30, 32, 34, 35, 37, 39, 40, 42, 44, 45, 47, 48, 50, 52, 53, 55, 57, 58, 60, 61, 63, 65, 66, 68, 70, 71, 73, 75, 76, 78, 79, 81, 83, 84, 86, 88, 89, 91, 92, 94, 96, 97, 99, 101, 102, 104, 106, 107
Offset: 1

Views

Author

Clark Kimberling, Feb 16 2012

Keywords

Comments

The joint ranking is for j >= 1 and k >= 1, so that the sets {2^j} and {3^k} are disjoint. Not identical to A182774; e.g., A206805 contains 318 but A182774 does not.

Examples

			The joint ranking begins with 2,3,4,8,9,16,27,32,64,81,128,243,256, so that
this sequence = (1,3,4,6,8,9,11,13,...),
A206807       = (2,5,7,10,12,...).
		

Crossrefs

Programs

  • Mathematica
    f[n_] := 2^n; g[n_] := 3^n; z = 200;
    c = Table[f[n], {n, 1, z}]; s = Table[g[n], {n, 1, z}];
    j = Sort[Union[c, s]];
    p[n_] := Position[j, f[n]]; q[n_] := Position[j, g[n]];
    Flatten[Table[p[n], {n, 1, z}]] (* A206805 *)
    Table[n + Floor[n*Log[3, 2]], {n, 1, 50}] (* A206805 *)
    Flatten[Table[q[n], {n, 1, z}]]  (* A206807 *)
    Table[n + Floor[n*Log[2, 3]], {n, 1, 50}] (* A206807 *)
  • PARI
    a(n) = n + floor(n*log(2)/log(3)); \\ Jinyuan Wang, Jan 27 2020

Formula

a(n) = n + floor(n*log_2(3)) (while A206807(n) = n + floor(n*log_3(2))).

A182774 Beatty sequence for 1+2^(-2/3).

Original entry on oeis.org

1, 3, 4, 6, 8, 9, 11, 13, 14, 16, 17, 19, 21, 22, 24, 26, 27, 29, 30, 32, 34, 35, 37, 39, 40, 42, 44, 45, 47, 48, 50, 52, 53, 55, 57, 58, 60, 61, 63, 65, 66, 68, 70, 71, 73, 74, 76, 78, 79, 81, 83, 84, 86, 88, 89, 91, 92, 94, 96, 97, 99, 101, 102, 104
Offset: 1

Views

Author

Clark Kimberling, Nov 30 2010

Keywords

Comments

Let u=2^(1/3). Jointly rank {ju} and {k/u} as in the first comment at A182760; a(n) is the position of n/u. A182774 is the complement of A182773.

Crossrefs

Programs

  • Magma
    [Floor(n*(1+2^(-2/3))): n in [1..80]]; // Vincenzo Librandi, Oct 25 2011
  • Mathematica
    Floor[Range[100]*(1 + 2^(-2/3))] (* Paolo Xausa, Jul 09 2024 *)

Formula

a(n) = floor(n*(1 + 2^(-2/3))).

A182772 Beatty sequence for (5-sqrt(3))/2.

Original entry on oeis.org

1, 3, 4, 6, 8, 9, 11, 13, 14, 16, 17, 19, 21, 22, 24, 26, 27, 29, 31, 32, 34, 35, 37, 39, 40, 42, 44, 45, 47, 49, 50, 52, 53, 55, 57, 58, 60, 62, 63, 65, 66, 68, 70, 71, 73, 75, 76, 78, 80, 81, 83, 84, 86, 88, 89, 91, 93, 94, 96, 98, 99, 101, 102, 104
Offset: 1

Views

Author

Clark Kimberling, Nov 30 2010

Keywords

Comments

Let u=1+sqrt(3) and v=sqrt(3). Jointly rank {ju} and {kv} as in the first comment at A182760; a(n) is the position of nv. A182773 is the complement of A182771.

Crossrefs

Programs

Formula

a(n) = floor(n*(5-sqrt(3))/2).

A182771 Beatty sequence for (6+sqrt(3))/3.

Original entry on oeis.org

2, 5, 7, 10, 12, 15, 18, 20, 23, 25, 28, 30, 33, 36, 38, 41, 43, 46, 48, 51, 54, 56, 59, 61, 64, 67, 69, 72, 74, 77, 79, 82, 85, 87, 90, 92, 95, 97, 100, 103, 105, 108, 110, 113, 115, 118, 121, 123, 126, 128, 131, 134, 136, 139, 141, 144, 146, 149
Offset: 1

Views

Author

Clark Kimberling, Nov 30 2010

Keywords

Comments

Let u=1+sqrt(3) and v=sqrt(3). Jointly rank {j*u} and {k*v} as in the first comment at A182760; a(n) is the position of n*u.

Crossrefs

Formula

a(n)=floor(n*(6+sqrt(3))/3).
Showing 1-4 of 4 results.