A Puzzle Forest

An unusual problem by Reddit user cgibbard, from a discussion in 2010:

Here’s a representation of 101010 for you to figure out.

      *             *      *
      |             |      |
   *  *  *   *  *   *  * * *
   |  |   \ /    \ /    \|/
*  *  *    *      *      *

As a bonus, here’s the corresponding representation for 42:

   * *   *
   |  \ /
*  *   *

The puzzle is to find the rule for this representation.

A commenter wrote, “This puzzle is really clever and very rewarding to figure out.”

Click for Answer