Gapplet

For n Z in a-ary format, and b {1, ..., 36}, we compute its b-ary representation.

Input a 
Input n in a-ary representation 
e.g., "A98FB"
if a>14.
Input b 
 
 
compute (n)b
 
The letters A, B, ..., Z
stand for 10, ..., 36 mod a.