Multiplicative digital root

Mathematical formula

In number theory, the multiplicative digital root of a natural number n {\displaystyle n} in a given number base b {\displaystyle b} is found by multiplying the digits of n {\displaystyle n} together, then repeating this operation until only a single-digit remains, which is called the multiplicative digital root of n {\displaystyle n} .[1][2] The multiplicative digital root for the first few positive integers are:

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 2, 4, 6, 8, 0, 2, 4, 6, 8, 0, 3, 6, 9, 2, 5, 8, 2, 8, 4, 0. (sequence A031347 in the OEIS)

Multiplicative digital roots are the multiplicative equivalent of digital roots.

Definition

Let n {\displaystyle n} be a natural number. We define the digit product for base b > 1 {\displaystyle b>1} F b : N N {\displaystyle F_{b}:\mathbb {N} \rightarrow \mathbb {N} } to be the following:

F b ( n ) = i = 0 k 1 d i {\displaystyle F_{b}(n)=\prod _{i=0}^{k-1}d_{i}}

where k = log b n + 1 {\displaystyle k=\lfloor \log _{b}{n}\rfloor +1} is the number of digits in the number in base b {\displaystyle b} , and

d i = n mod b i + 1 n mod b i b i {\displaystyle d_{i}={\frac {n{\bmod {b^{i+1}}}-n{\bmod {b}}^{i}}{b^{i}}}}

is the value of each digit of the number. A natural number n {\displaystyle n} is a multiplicative digital root if it is a fixed point for F b {\displaystyle F_{b}} , which occurs if F b ( n ) = n {\displaystyle F_{b}(n)=n} .

For example, in base b = 10 {\displaystyle b=10} , 0 is the multiplicative digital root of 9876, as

F 10 ( 9876 ) = ( 9 ) ( 8 ) ( 7 ) ( 6 ) = 3024 {\displaystyle F_{10}(9876)=(9)(8)(7)(6)=3024}
F 10 ( 3024 ) = ( 3 ) ( 0 ) ( 2 ) ( 4 ) = 0 {\displaystyle F_{10}(3024)=(3)(0)(2)(4)=0}
F 10 ( 0 ) = 0 {\displaystyle F_{10}(0)=0}

All natural numbers n {\displaystyle n} are preperiodic points for F b {\displaystyle F_{b}} , regardless of the base. This is because if n b {\displaystyle n\geq b} , then

n = i = 0 k 1 d i b i {\displaystyle n=\sum _{i=0}^{k-1}d_{i}b^{i}}

and therefore

F b ( n ) = i = 0 k 1 d i = d k 1 i = 0 k 2 d i < d k 1 b k 1 < i = 0 k 1 d i b i = n {\displaystyle F_{b}(n)=\prod _{i=0}^{k-1}d_{i}=d_{k-1}\prod _{i=0}^{k-2}d_{i}<d_{k-1}b^{k-1}<\sum _{i=0}^{k-1}d_{i}b^{i}=n}

If n < b {\displaystyle n<b} , then trivially

F b ( n ) = n {\displaystyle F_{b}(n)=n}

Therefore, the only possible multiplicative digital roots are the natural numbers 0 n < b {\displaystyle 0\leq n<b} , and there are no cycles other than the fixed points of 0 n < b {\displaystyle 0\leq n<b} .

Multiplicative persistence

The number of iterations i {\displaystyle i} needed for F b i ( n ) {\displaystyle F_{b}^{i}(n)} to reach a fixed point is the multiplicative persistence of n {\displaystyle n} . The multiplicative persistence is undefined if it never reaches a fixed point.

In base 10, it is conjectured that there is no number with a multiplicative persistence i > 11 {\displaystyle i>11} : this is known to be true for numbers n 10 20585 {\displaystyle n\leq 10^{20585}} .[3][4] The smallest numbers with persistence 0, 1, ... are:

0, 10, 25, 39, 77, 679, 6788, 68889, 2677889, 26888999, 3778888999, 277777788888899. (sequence A003001 in the OEIS)

The search for these numbers can be sped up by using additional properties of the decimal digits of these record-breaking numbers. These digits must be sorted, and, except for the first two digits, all digits must be 7, 8, or 9. There are also additional restrictions on the first two digits. Based on these restrictions, the number of candidates for k {\displaystyle k} -digit numbers with record-breaking persistence is only proportional to the square of k {\displaystyle k} , a tiny fraction of all possible k {\displaystyle k} -digit numbers. However, any number that is missing from the sequence above would have multiplicative persistence > 11; such numbers are believed not to exist, and would need to have over 20,000 digits if they do exist.[3]

Extension to negative integers

The multiplicative digital root can be extended to the negative integers by use of a signed-digit representation to represent each integer.

Programming example

The example below implements the digit product described in the definition above to search for multiplicative digital roots and multiplicative persistences in Python.

def digit_product(x: int, b: int) -> int:
    if x == 0:
        return 0
    total = 1
    while x > 1:
        if x % b == 0:
            return 0
        if x % b > 1:
            total = total * (x % b)
        x = x // b
    return total


def multiplicative_digital_root(x: int, b :int) -> int:
    seen = []
    while x not in seen:
        seen.append(x)
        x = digit_product(x, b)
    return x


def multiplicative_persistence(x: int, b: int) -> int:
    seen = []
    while x not in seen:
        seen.append(x)
        x = digit_product(x, b)
    return len(seen) - 1

See also

References

  1. ^ Weisstein, Eric W. "Multiplicative Digital Root". MathWorld.
  2. ^ Sloane, N. J. A. (ed.). "Sequence A031347". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
  3. ^ a b Sloane, N. J. A. (ed.). "Sequence A003001". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
  4. ^ Weisstein, Eric W. "MultiplicativePersistence". MathWorld.

Literature

External links

  • What's special about 277777788888899? - Numberphile on YouTube (Mar 21, 2019)
  • v
  • t
  • e
Classes of natural numbers
Of the form a × 2b ± 1
Other polynomial numbers
Recursively defined numbers
Possessing a specific set of other numbers
Expressible via specific sums
2-dimensional
centered
non-centered
3-dimensional
centered
non-centered
pyramidal
4-dimensional
non-centered
Combinatorial numbers
Divisor functions
Prime omega functions
Euler's totient function
Aliquot sequences
Primorial
Numeral system-dependent numbers
Arithmetic functions
and dynamics
Digit sum
Digit product
Coding-related
Other
P-adic numbers-related
Digit-composition related
Digit-permutation related
Divisor-related
Other
Generated via a sieve
  • Mathematics portal