Game State Representation 2

Represent a game state as 2i × 3j, where

   i = the number of coins in pile 1, and
   j = the number of coins in pile 2.


is represented as 24 × 35 = 3888.

Constructor:

     (define make-game-state
       (lambda (i j) (* (expt 2 i) (expt 3 j))))
This representation does not limit the size of the piles.