You need to assign a "number" for each letter, for example:
A = 0 N = 13 B = 1 O = 14 C = 2 P = 15 D = 3 Q = 16 E = 4 R = 17 F = 5 S = 18 G = 6 T = 19 H = 7 U = 20 I = 8 V = 21 J = 9 W = 22 K = 10 X = 23 L = 11 Y = 24 M = 12 Z = 25
Then your {20,13} will become UN .
Convert back UN -> {20,13} -> (20 * 26 + 13) -> 52 .
As a further example, try number 10163, just torn out of thin air at random.
Divide this by 26 until you get a number less than 26 (i.e. twice), and get 15 with a fraction of 0.03402366.
Multiply this by 26 and you will get 0 with a fraction of 0.88461516.
Multiply this by 26, and you get 23 (actually 22.99999416 on my calculator, but since the initial division was just two steps, we stop here - very little inaccuracy is due to the fact that floating-point numbers are rounded).
Hence, the "numbers" {15,0,23} , which are the "number" of PAX . Wow, what a coincidence?
To convert PAX back to decimal, its
P * 26 2 + A * 26 1 + X * 26 0
or
(15 * 676) + (0 * 26) + 23 = 10140 + 0 + 23 = 10163