The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A217557 The difference between the reversal of an 8-bit integer and the original integer. 1
 0, 127, 62, 189, 28, 155, 90, 217, 8, 135, 70, 197, 36, 163, 98, 225, -8, 119, 54, 181, 20, 147, 82, 209, 0, 127, 62, 189, 28, 155, 90, 217, -28, 99, 34, 161, 0, 127, 62, 189, -20, 107, 42, 169, 8, 135, 70, 197, -36, 91, 26, 153, -8, 119, 54, 181, -28, 99 (list; graph; refs; listen; history; text; internal format)
 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)<

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified January 18 16:27 EST 2020. Contains 331011 sequences. (Running on oeis4.)