Binary Numbers: Resources and Magic Trick
Resources for teaching about binary numbers
I've intentionally left off directions for this magic trick. It's utterly unimpressive that a computer should be able to do it, so I haven't even coded that up; these materials are for a human wizard to use. If you want to know how it's done, see this Numberphile video.