how to use recusive medthod to generate Solomon sequence number http://www.programming-challenges.com/pg.php?page=downloadproblem&probid=110607&format=html