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.

A341336 Inverse permutation to A341335.

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, Apr 25 2021

Keywords

Examples

			A341335(42) = 52, so a(52) = 42.
		

Crossrefs

Cf. A341335.

Programs

  • PARI
    a(n) = { my (c=binary(n), b=c); for (m=1, #b, fordiv (m, d, if (d