HOME

TheInfoList



OR:

In
number theory Number theory (or arithmetic or higher arithmetic in older usage) is a branch of pure mathematics devoted primarily to the study of the integers and arithmetic function, integer-valued functions. German mathematician Carl Friedrich Gauss (1777â ...
, a factorion 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 ...
b is 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 ...
that equals the sum of the
factorial In mathematics, the factorial of a non-negative denoted is the product of all positive integers less than or equal The factorial also equals the product of n with the next smaller factorial: \begin n! &= n \times (n-1) \times (n-2) \t ...
s of its digits. The name factorion was coined by the author
Clifford A. Pickover Clifford Alan Pickover (born August 15, 1957) is an American author, editor, and columnist in the fields of science, mathematics, science fiction, innovation, and creativity. For many years, he was employed at the IBM Thomas J. Watson Research ...
.


Definition

Let n be a natural number. For a base b > 1, we define the sum of the factorials of the digits of n, \operatorname_b : \mathbb \rightarrow \mathbb, to be the following: :\operatorname_b(n) = \sum_^ d_i!. where k = \lfloor \log_b n \rfloor + 1 is the number of digits in the number in base b, n! is the
factorial In mathematics, the factorial of a non-negative denoted is the product of all positive integers less than or equal The factorial also equals the product of n with the next smaller factorial: \begin n! &= n \times (n-1) \times (n-2) \t ...
of n and :d_i = \frac is the value of the ith digit of the number. A natural number n is a b-factorion if it is a fixed point for \operatorname_b, i.e. if \operatorname_b(n) = n. 1 and 2 are fixed points for all bases b, and thus are trivial factorions for all b, and all other factorions are nontrivial factorions. For example, the number 145 in base b = 10 is a factorion because 145 = 1! + 4! + 5!. For b = 2, the sum of the factorials of the digits is simply the number of digits k in the base 2 representation since 0! = 1! = 1. A natural number n is a sociable factorion if it is a
periodic point In mathematics, in the study of iterated functions and dynamical systems, a periodic point of a function is a point which the system returns to after a certain number of function iterations or a certain amount of time. Iterated functions Given a ...
for \operatorname_b, where \operatorname_b^k(n) = n for a positive
integer An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign (−1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the language ...
k, and forms a cycle of period k. A factorion is a sociable factorion with k = 1, and a amicable factorion is a sociable factorion with k = 2. All natural numbers n are preperiodic points for \operatorname_b, regardless of the base. This is because all natural numbers of base b with k digits satisfy b^ \leq n \leq (b-1)!(k). However, when k \geq b, then b^ > (b-1)!(k) for b > 2, so any n will satisfy n > \operatorname_b(n) until n < b^b. There are finitely many natural numbers less than b^b, so the number is guaranteed to reach a periodic point or a fixed point less than b^b, making it a preperiodic point. For b = 2, the number of digits k \leq n for any number, once again, making it a preperiodic point. This means also that there are a finite number of factorions and cycles for any given base b. The number of iterations i needed for \operatorname_b^i(n) to reach a fixed point is the \operatorname_b function's persistence of n, and undefined if it never reaches a fixed point.


Factorions for


''b'' = (''k'' − 1)!

Let k be a positive integer and the number base b = (k - 1)!. Then: *n_1 = kb + 1 is a factorion for \operatorname_b for all k. *n_2 = kb + 2 is a factorion for \operatorname_b for all k.


''b'' = ''k''! − ''k'' + 1

Let k be a positive integer and the number base b = k! - k + 1. Then: *n_1 = b + k is a factorion for \operatorname_b for all k.


Table of factorions and cycles of

All numbers are represented in base b.


Programming example

The example below implements the sum of the factorials of the digits described in the definition above to search for factorions and cycles 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 factorial(x: int) -> int: total = 1 for i in range(0, x): total = total * (i + 1) return total def sfd(x: int, b: int) -> int: """Sum of the factorials of the digits.""" total = 0 while x > 0: total = total + factorial(x % b) x = x // b return total def sfd_cycle(x: int, b: int) -> List nt seen = [] while x not in seen: seen.append(x) x = sfd(x, b) cycle = [] while x not in cycle: cycle.append(x) x = sfd(x, b) return cycle


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 ...
*
Dudeney number In number theory, a Dudeney number in a given number base b is a natural number equal to the perfect cube of another natural number such that the digit sum of the first natural number is equal to the second. The name derives from Henry Dudeney, who ...
*
Happy number In number theory, a happy number is a number which eventually reaches 1 when replaced by the sum of the square of each digit. For instance, 13 is a happy number because 1^2+3^2=10, and 1^2+0^2=1. On the other hand, 4 is not a happy number because ...
*
Kaprekar's constant In number theory, Kaprekar's routine is an iterative algorithm that, with each iteration, takes a natural number in a given number base, creates two new numbers by sorting the digits of its number by descending and ascending order, and subtracts th ...
*
Kaprekar number In mathematics, a natural number in a given number base is a p-Kaprekar number if the representation of its square in that base can be split into two parts, where the second part has p digits, that add up to the original number. The numbers are n ...
*
Meertens number In number theory and mathematical logic, a Meertens number in a given number base b is a natural number that is its own Gödel number. It was named after Lambert Meertens by Richard S. Bird as a present during the celebration of his 25 years at th ...
*
Narcissistic number In number theory, a narcissistic number 1 F_ : \mathbb \rightarrow \mathbb to be the following: : F_(n) = \sum_^ d_i^k. where k = \lfloor \log_ \rfloor + 1 is the number of digits in the number in base b, and : d_i = \frac is the value of each d ...
*
Perfect digit-to-digit invariant In number theory, a perfect digit-to-digit invariant (PDDI; also known as a Munchausen number) is a natural number in a given number base b that is equal to the sum of its digits each raised to the power of itself. An example in base 10 is 3435, bec ...
*
Perfect digital invariant In number theory, a perfect digital invariant (PDI) is a number in a given number base (b) that is the sum of its own digits each raised to a given power (p). 0 F_ : \mathbb \rightarrow \mathbb is defined as: :F_(n) = \sum_^ d_i^p. where k = \lfloo ...
*
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


External links


Factorion at Wolfram MathWorld
{{Classes of natural numbers Arithmetic dynamics Base-dependent integer sequences