Fun with bitstrings and bijections

Link post

Here’s a quick math/​coding puzzle with a cute solution.

No comments.