TI programs that implement the Extended Euclidean Algorithm.

Download the TI-83 program
Download the TI-92 program
See below for a TI-92 version.

TI-82/83 Listing

by Ken Levasseur
UMass Lowell
Kenneth_Levasseur@uml.edu

Given integer values A and B, the displayed output is two lists:

where the greatest common divisor of a and b is g and for any integer k,



TI-92 Listing

The following TI-92 program was written by Anthony Haroules

euclid()
Prgm
Disp "A"
Input a
Disp "B"
Input b
{a,1,0}->l1
{b,0,1}->l2
While l2[1]>0
iPart(l1[1]/l2[1])->q
l1-q*l2->l3
l2->l1
l3->l2
EndWhile
Disp l1
Disp l2
EndPrgm

TI Program page
UML Math Sci. Home Page