Gapplet
Write out the powers of
a
mod
p
with
p
prime.
Input
a
Input a prime
p
Compute the powers of
a
mod
p