In number theory, the multiplicative digital root of a
natural number
In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country").
Numbers used for counting are called ''Cardinal n ...
in a given
number base
In a positional numeral system, the radix or base is the number of unique digits, including the digit zero, used to represent numbers. For example, for the decimal/denary system (the most common system in use today) the radix (base number) is t ...
is found by
multiplying the
digits of
together, then repeating this operation until only a single-digit remains, which is called the multiplicative digital root of
.
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.
Multiplicative digital roots are the multiplicative equivalent of
digital root
The digital root (also repeated digital sum) of a natural number in a given radix is the (single digit) value obtained by an iterative process of summing digits, on each iteration using the result from the previous iteration to compute a digit su ...
s.
Definition
Let
be a natural number. We define the digit product for base
to be the following:
:
where
is the number of digits in the number in base
, and
:
is the value of each digit of the number. A natural number
is a multiplicative digital root if it is a
fixed point for
, which occurs if
.
For example, in base
, 0 is the multiplicative digital root of 9876, as
:
:
:
All natural numbers
are
preperiodic points for
, regardless of the base. This is because if
, then
:
and therefore
:
If
, then trivially
:
Therefore, the only possible multiplicative digital roots are the natural numbers
, and there are no cycles other than the fixed points of
.
Multiplicative persistence
The number of iterations
needed for
to reach a fixed point is the multiplicative
persistence of
. The multiplicative persistence is undefined if it never reaches a fixed point.
In
base 10
The decimal numeral system (also called the base-ten positional numeral system and denary or decanary) is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers of the Hindu–Arabic numeral ...
, it is conjectured that there is no number with a multiplicative persistence
: this is known to be true for numbers
.
The smallest numbers with persistence 0, 1, ... are:
: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
-digit numbers with record-breaking persistence is only proportional to the square of
, a tiny fraction of all possible
-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.
Extension to negative integers
The multiplicative digital root can be extended to the negative integers by use of a
signed-digit representation
In mathematical notation for numbers, a signed-digit representation is a positional numeral system with a set of signed digits used to encode the integers.
Signed-digit representation can be used to accomplish fast addition of integers because ...
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
Python may refer to:
Snakes
* Pythonidae, a family of nonvenomous snakes found in Africa, Asia, and Australia
** ''Python'' (genus), a genus of Pythonidae found in Africa and Asia
* Python (mythology), a mythical serpent
Computing
* Python (pro ...
.
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
*
Arithmetic dynamics Arithmetic dynamics is a field that amalgamates two areas of mathematics, dynamical systems and number theory. Classically, discrete dynamics refers to the study of the iteration of self-maps of the complex plane or real line. Arithmetic dynamics is ...
*
Digit sum
In mathematics, the digit sum of a natural number in a given number base is the sum of all its digits. For example, the digit sum of the decimal number 9045 would be 9 + 0 + 4 + 5 = 18.
Definition
Let n be a natural number. We define the digit ...
*
Digital root
The digital root (also repeated digital sum) of a natural number in a given radix is the (single digit) value obtained by an iterative process of summing digits, on each iteration using the result from the previous iteration to compute a digit su ...
*
Sum-product number
A sum-product number in a given number base b is a natural number that is equal to the product of the sum of its digits and the product of its digits.
There are a finite number of sum-product numbers in any given base b. 1 F_ : \mathbb \rightarro ...
References
Literature
*
External links
* (Mar 21, 2019)
{{Classes of natural numbers
Algebra
Arithmetic dynamics
Integer sequences
Base-dependent integer sequences
Number theory