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

A360959 Order the nonnegative integers by increasing number of digits in base 2, then by decreasing number of digits in base 3, then by increasing number of digits in base 4, etc.

Original entry on oeis.org

0, 1, 3, 2, 5, 7, 6, 4, 9, 11, 13, 15, 14, 12, 10, 8, 27, 29, 31, 30, 28, 25, 26, 17, 19, 21, 23, 24, 22, 20, 18, 16, 33, 35, 34, 32, 49, 51, 53, 55, 57, 59, 61, 63, 62, 60, 58, 56, 54, 52, 50, 37, 39, 41, 43, 45, 47, 48, 46, 44, 42, 40, 38, 36, 125, 127, 126
Offset: 0

Views

Author

Rémy Sigrist, Feb 27 2023

Keywords

Comments

We ignore leading zeros.
This sequence is a permutation of the nonnegative integers with inverse A360960.
The order of appearance of two distinct integers, say x and y with x > y, depends on the parity of A360964(x, y): even implies x appears after y, odd implies x appears before y.

Examples

			The first terms, alongside their number of digits in small bases, are:
  n   a(n)  w2  w3  w4  w5  w6  w7  w8  w9  w10  w11  w12  w13  w14  w15
  --  ----  --  --  --  --  --  --  --  --  ---  ---  ---  ---  ---  ---
   0     0   0
   1     1   1
   2     3   2   2
   3     2   2   1
   4     5   3   2   2   2   1
   5     7   3   2   2   2   2   2
   6     6   3   2   2   2   2   1
   7     4   3   2   2   1
   8     9   4   3   2   2   2   2   2   2    1
   9    11   4   3   2   2   2   2   2   2    2    2    1
  10    13   4   3   2   2   2   2   2   2    2    2    2    2    1
  11    15   4   3   2   2   2   2   2   2    2    2    2    2    2    2
  12    14   4   3   2   2   2   2   2   2    2    2    2    2    2    1
  13    12   4   3   2   2   2   2   2   2    2    2    2    1
  14    10   4   3   2   2   2   2   2   2    2    1
  15     8   4   2
		

Crossrefs

See A360982 for a similar sequence.
Cf. A360960 (inverse), A360964.

Programs

  • PARI
    See Links section.

Formula

a(n) < 2^k for any n < 2^k.

A360963 Triangle T(n, k), n > 0, k = 0..n-1, read by rows: T(n, k) is the least e > 0 such that the binary expansions of n^e and k^e have different lengths.

Original entry on oeis.org

1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3
Offset: 1

Views

Author

Rémy Sigrist, Feb 27 2023

Keywords

Comments

Leading zeros are ignored (and 0 is assumed to have binary length 0).

Examples

			Triangle T(n, k) begins:
  n\k | 0  1  2  3  4  5  6  7  8  9  10  11  12  13  14
  ----+-------------------------------------------------
    1 | 1
    2 | 1  1
    3 | 1  1  2
    4 | 1  1  1  1
    5 | 1  1  1  1  4
    6 | 1  1  1  1  2  2
    7 | 1  1  1  1  2  2  3
    8 | 1  1  1  1  1  1  1  1
    9 | 1  1  1  1  1  1  1  1  6
   10 | 1  1  1  1  1  1  1  1  4  4
   11 | 1  1  1  1  1  1  1  1  3  3   3
   12 | 1  1  1  1  1  1  1  1  2  2   2   2
   13 | 1  1  1  1  1  1  1  1  2  2   2   2   3
   14 | 1  1  1  1  1  1  1  1  2  2   2   2   3   4
   15 | 1  1  1  1  1  1  1  1  2  2   2   2   3   4   6
		

Crossrefs

Programs

  • PARI
    T(n,k) = { for (e=1, oo, if (#binary(n^e) != #binary(k^e), return (e))) }

Formula

T(n, 0) = 1.
T(n, n-1) = A183200(n-1) for n > 1.
Showing 1-2 of 2 results.