Gapplet

Given a prime p and a degree degree a, say, we have a field of order q = pa. Below we label the nonzero elements a, b, ... The multiplication is given by ai = the i-th letter of the alphabet. Together with 0, we have room for exactly 27 elements; hence no bigger fields are allowed.

Output is the addition table.

Input p 
Input degree a