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
Fixed points are the multiples of 17 (A008599) in {0..255}. - Alois P. Heinz, May 02 2024
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
KEYWORD
nonn,fini,full,base
AUTHOR
Jon Perry, Oct 06 2012
STATUS
approved