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

 Please make a donation to keep the OEIS running. We are now in our 56th year. In the past year we added 10000 new sequences and reached almost 9000 citations (which often say "discovered thanks to the OEIS"). Other ways to donate

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A217558 Split-and-swap on 8-bit integers. 2
 0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 1, 17, 33, 49, 65, 81, 97, 113, 129, 145, 161, 177, 193, 209, 225, 241, 2, 18, 34, 50, 66, 82, 98, 114, 130, 146, 162, 178, 194, 210, 226, 242, 3, 19, 35, 51, 67, 83, 99, 115, 131, 147, 163, 179, 195, 211, 227, 243 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 COMMENTS Split-and-swap consists of spliting a binary word into two halves and swapping the parts over to form a new word, for example 11001010 becomes 10101100. There are 256 terms to the sequence. - Harvey P. Dale, Jul 14 2015 LINKS Harvey P. Dale, Table of n, a(n) for n = 0..255 EXAMPLE a(17)=17 because 17 is 00010001 which is invariant over the SaS rule. a(19)=49 because 00010011 becomes 00110001. MATHEMATICA FromDigits[#, 2]&/@(Join[Take[#, -4], Take[#, 4]]&/@Select[Tuples[{0, 1}, 8], Length[#] ==8 &]) (* Harvey P. Dale, Jul 14 2015 *) PROG (JavaScript) for (i=0; i<16; i++) for (j=0; j<16; j++) document.write(j*16+i+", "); (PARI) A217558(n)=[1, 16]*divrem(n, 16) \\ - M. F. Hasler, Oct 07 2012 CROSSREFS Sequence in context: A122614 A046101 A044856 * A044901 A008598 A044061 Adjacent sequences:  A217555 A217556 A217557 * A217559 A217560 A217561 KEYWORD nonn,fini,full,base AUTHOR Jon Perry, Oct 06 2012 STATUS approved

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 November 24 01:49 EST 2020. Contains 338603 sequences. (Running on oeis4.)