login
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)).
2
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,3
LINKS
FORMULA
a(n) + A030101(a(n)) = A092213(n).
a(n) >= A330340(n).
EXAMPLE
For n = 5:
- A092213(5) = 9,
- 8 is the greatest k such that k + reverse(k) = 9,
- so a(5) = 8.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 21 2020
STATUS
approved