login
A256756
a(n) = bitwise XOR of n and the reverse of n.
4
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 25, 18, 39, 60, 45, 86, 67, 72, 22, 25, 0, 55, 50, 45, 36, 83, 78, 65, 29, 18, 55, 0, 9, 22, 27, 108, 117, 122, 44, 39, 50, 9, 0, 27, 110, 101, 100, 111, 55, 60, 45, 22, 27, 0, 121, 114, 111, 100, 58, 45, 36, 27, 110, 121
OFFSET
0,11
LINKS
FORMULA
a(n) = A003987(n, A004086(n)).
MAPLE
a:= n-> Bits[Xor](n, (s-> parse(cat(s[-i]$i=1..length(s))))(""||n)):
seq(a(n), n=0..80);
MATHEMATICA
Table[BitXor[n, FromDigits[Reverse[IntegerDigits[n]]]], {n, 0, 65}] (* Ivan N. Ianakiev, Apr 10 2015 *)
PROG
(PARI) a(n) = bitxor(n, subst(Polrev(digits(n)), x, 10)); \\ Michel Marcus, Apr 10 2015
KEYWORD
nonn,base,look,easy
AUTHOR
Alois P. Heinz, Apr 09 2015
STATUS
approved