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.

A358876 Inverse to A358875.

Original entry on oeis.org

1, 2, 3, 4, 5, 7, 11, 16, 6, 12, 8, 22, 29, 37, 46, 56, 9, 30, 38, 67, 23, 79, 92, 106, 17, 121, 137, 154, 172, 191, 211, 232, 10, 47, 31, 173, 68, 138, 122, 254, 80, 93, 277, 301, 326, 352, 379, 407, 13, 436, 466, 497, 529, 562, 596, 631, 667, 704, 742, 781
Offset: 0

Views

Author

Rémy Sigrist, Dec 04 2022

Keywords

Examples

			A358875(38) = 18, so a(18) = 38.
		

Crossrefs

Programs

  • PARI
    See Links section.

Formula

a(2^k) < a(n) if 2^k < n.

A386932 Lexicographically earliest sequence of distinct positive integers that can be partitioned into runs of integers without common bits, the n-th such run having a(n) terms.

Original entry on oeis.org

1, 2, 4, 3, 8, 16, 32, 5, 10, 48, 6, 9, 64, 128, 256, 512, 1024, 2048, 7, 24, 96, 384, 1536, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 11, 20, 160, 320, 2560, 5120, 24576, 98304, 393216, 1572864, 6291456, 8388608
Offset: 1

Views

Author

Rémy Sigrist, Aug 09 2025

Keywords

Comments

This sequence is a permutation of the positive integers as each run starts with the least integer not yet in the sequence.
The powers of two appear in natural order.

Examples

			The first terms and runs are:
  n  a(n)  n-th run
  -  ----  -----------------------------------
  1     1  1
  2     2  2, 4
  3     4  3, 8, 16, 32
  4     3  5, 10, 48
  5     8  6, 9, 64, 128, 256, 512, 1024, 2048
		

Crossrefs

See A385661 for a similar sequence.
Cf. A358875, A387024 (inverse).

Programs

  • PARI
    \\ See Links section.
Showing 1-2 of 2 results.