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.

A377355 a(n) is the greatest k not yet in the sequence such that A374356(n) = A374356(k).

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, Oct 27 2024

Keywords

Comments

This sequence is a self-inverse permutation of the nonnegative integers that preserves the binary length.

Examples

			The first terms are:
  n   a(n)  A374356(n)  A374356(a(n))
  --  ----  ----------  -------------
   0     0           0              0
   1     1           1              1
   2     3           2              2
   3     2           2              2
   4     6           4              4
   5     7           5              5
   6     4           4              4
   7     5           5              5
   8    12           8              8
   9    13           9              9
  10    15          10             10
  11    14          10             10
  12     8           8              8
  13     9           9              9
  14    11          10             10
  15    10          10             10
		

Crossrefs

Cf. A374356.

Programs

  • PARI
    \\ See Links section.