On Aug 13, 3:12 pm, James Edward Gray II <ja... / grayproductions.net>
wrote:
> I believe your code is correct and mine makes the same mistake as
> alpha.chen's code.

Forgive me for being dense, but I can't seem to figure out what the
mistake is. When I do it by hand, I get the same result as when I run
the script:

145 = 10010001b

  [0 0]1[0 0]
[0 0]0 0 1[0 0]
   1 1 0 0 1

Alpha Chen