Have a look:
A, B, C, D, ..., Y, Z, AA, AB, AC, AD, ..., AY, AZ, BA, BB, ...
is exactly like:
0, 1, 2, 3, 4, ..., 9, 10, 11, 12, 13, ..., 19, 20, 21, ...
but with digits A..Z
instead of 0..9
. So:
Algorithmic-ally I'm not sure how I can get a number, like say 52, and convert it to the equivalent alphabet representation..
You need to use a generic algorithm to convert a number in base-N to base-M (like decimal to hexadecimal), but with N equal to 10 and M equal to 26 (letters), and make sure that you use correct characters to represent the final "digits". As simple as that!