I found this website:http://www.immortaltheory.com/NumberTheory/2nmodn.htm
There is theoretical information about different ways to solve the equation 2^n (mod n) = c.
blackjack
flooble's webmaster puzzle