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.

A357491 Distinct values in A356784, in order of appearance.

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, Oct 01 2022

Keywords

Comments

We use offset 0 so as to have a permutation of the nonnegative integers.
See A357492 for the inverse.

Examples

			Table A357492 begins:
   0,
   0,
   0, 1,
   0, 1, 2, 3,
   0, 1, 2, 4, 3, 5, 6, 7,
   0, 1, 2, 4, 8, 3, 5, 9, 6, 10, 7, 12, 11, 13, 14, 15,
   ...
So the present sequence begins:
   0,
   1,
   2, 3,
   4, 5, 6, 7,
   8, 9, 10, 12, 11, 13, 14, 15,
   ...
		

Crossrefs

Cf. A356784, A357492 (inverse).

Formula

a(n) <= 2^k iff n <= 2^k for any k >= 0.
a(2^k) = 2^k for any k >= 0.