Problem of the Fortnight #2

 

 

                                  

 

This problem was solved by Benjamin Burdett, Andrew Hoffman, Kyle Prifogle, and Brad Weaver.  Below is one of those solutions. Brad Weaver provided a solution with interesting Computer Science insights. Click here to see it.

 

 

 

 

Click here for previous problems (with solutions when available):