n
b
n
n
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. Multiplicative digital roots are the multiplicative equivalent of digital roots.
Let
n
b>1
Fb:N → N
Fb(n)=
k-1 | |
\prod | |
i=0 |
di
k=\lfloorlogb{n}\rfloor+1
b
di=
n\bmod{bi+1 | |
- |
n\bmodbi}{bi}
n
Fb
Fb(n)=n
For example, in base
b=10
F10(9876)=(9)(8)(7)(6)=3024
F10(3024)=(3)(0)(2)(4)=0
F10(0)=0
All natural numbers
n
Fb
n\geqb
n=
k-1 | |
\sum | |
i=0 |
dibi
Fb(n)=
k-1 | |
\prod | |
i=0 |
di=dk
k-2 | |
\prod | |
i=0 |
di<dkbk<
k-1 | |
\sum | |
i=0 |
dibi=n
n<b
Fb(n)=n
0\leqn<b
0\leqn<b
The number of iterations
i
i | |
F | |
b |
(n)
n
In base 10, it is conjectured that there is no number with a multiplicative persistence
i>11
n\leq1020585
0, 10, 25, 39, 77, 679, 6788, 68889, 2677889, 26888999, 3778888999, 277777788888899.
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
k
k
The multiplicative digital root can be extended to the negative integers by use of a signed-digit representation to represent each integer.
The example below implements the digit product described in the definition above to search for multiplicative digital roots and multiplicative persistences in Python.
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