OFFSET
0,2
COMMENTS
The difference between the reversal of an 8-bit integer and the original integer.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..255 (all terms of the sequence).
FORMULA
a(n) = A160638(n) - n.
EXAMPLE
5 -> 00000101 -> 10100000 = 160 so a(5) = 155.
MATHEMATICA
Table[FromDigits[Reverse[PadLeft[IntegerDigits[n, 2], 8, 0]], 2]-n, {n, 0, 60}] (* Harvey P. Dale, Oct 12 2012 *)
PROG
(PARI) A217557(n)=sum(i=0, 7, bittest(n, 7-i)<<i)-n \\ - M. F. Hasler, Oct 07 2012
CROSSREFS
KEYWORD
sign,base,fini,full
AUTHOR
Jon Perry, Oct 06 2012
STATUS
approved