First! My old version of python lacks "bin(x)" as that was new in 2.6, I have 2.5. So I wrote my own:
lebin = lambda a:(a>1 and str(a%2)+lebin(a/2)) or (a==1 and "1") or ""
Then I was interested in all little-endian binary expansions that lack '11' anywhere within them, then end with '11' (def: fibonacci codes), and are 8 bits long or less:
[j+'1'
(
Read more... )