You can use this java applet to solve integer equations of the type Px+Qy=1 using Euclid's algorithm.
See the article Euclid's Algorithm for further details.
Published June 2001,October 2009.
Help With Mathematical Display