Powers:
Java Essentials
Chapter 7, P7.13
Applet Source Code
Solver Class source code