Integers
The quotients of consecutive powers of the radix r are given by the remainders of successive divisions of the given number n by r. The function R gives a list with the digits of the number n in base (radix) r. n is given in base 10.
A few examples expressing the number 239 in different bases:
The following example uses the letters of the alphabet to encode the digits (ref. "A course in number theory and cryptography", by Neal Koblitz).
One million in binary.
One million in base 7.
The number of digits a number's expression in base r is given by ⌊
⌋+1; for example, the number of digits of one million in base 7 is:
| Created by Mathematica (June 3, 2006) |