A331585 a(n) is the greatest k such that A092213(n) = k + reverse(k) (where reverse(k) is the binary reverse of k, A030101(k)).
0, 1, 2, 4, 3, 8, 5, 7, 12, 16, 9, 14, 13, 20, 24, 15, 32, 17, 28, 26, 21, 25, 40, 48, 29, 27, 44, 31, 56, 64, 33, 50, 60, 41, 72, 49, 80, 45, 62, 57, 96, 88, 51, 84, 61, 59, 104, 112, 92, 63, 128, 65, 98, 120, 116, 73, 106, 81, 144, 124, 97, 160, 89, 122, 85
Offset: 0
Examples
For n = 5: - A092213(5) = 9, - 8 is the greatest k such that k + reverse(k) = 9, - so a(5) = 8.
Links
- Rémy Sigrist, Table of n, a(n) for n = 0..7528
- Rémy Sigrist, PARI program for A331585
Programs
-
PARI
See Links section.