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.

A371962 Inverse permutation to A371961.

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, Apr 14 2024

Keywords

Examples

			A371961(42) = 57, so a(57) = 42.
		

Crossrefs

Cf. A371961.

Programs

  • PARI
    \\ See Links section.

A371944 The binary expansion of a(n) corresponds to the ordinal transform (reduced modulo 2) of the binary expansion of n.

Original entry on oeis.org

0, 1, 3, 2, 6, 6, 5, 5, 13, 12, 12, 13, 10, 11, 11, 10, 26, 26, 25, 25, 25, 25, 26, 26, 21, 21, 22, 22, 22, 22, 21, 21, 53, 52, 52, 53, 50, 51, 51, 50, 50, 51, 51, 50, 53, 52, 52, 53, 42, 43, 43, 42, 45, 44, 44, 45, 45, 44, 44, 45, 42, 43, 43, 42, 106, 106
Offset: 0

Views

Author

Rémy Sigrist, Apr 13 2024

Keywords

Comments

Leading zeros are ignored.
All terms belong to A063037.

Examples

			For n = 43: the binary expansion of 43 is "101011", the corresponding ordinal transform is "1, 1, 2, 2, 3, 4", reducing modulo 2 yields "110010", the binary expansion of a(43), so a(43) = 50.
		

Crossrefs

Programs

  • Mathematica
    {0}~Join~Array[(c[0] = 1; c[1] = 1; FromDigits[Map[Mod[c[#]++, 2] &, IntegerDigits[#, 2] ], 2]) &, 120] (* Michael De Vlieger, Apr 16 2024 *)
  • PARI
    a(n) = { my (b = binary(n), f = vector(2)); for (i = 1, #b, b[i] = f[1+b[i]]++;); fromdigits(b % 2, 2); }

Formula

A070939(a(n)) = A070939(n).
a(floor(n/2)) = floor(a(n)/2).
Showing 1-2 of 2 results.