Dudeney Number
   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 Dudeney number 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 ...
equal to the
perfect cube In arithmetic and algebra, the cube of a number is its third power, that is, the result of multiplying three instances of together. The cube of a number or any other mathematical expression is denoted by a superscript 3, for example or . ...
of another
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 ...
such that the
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 ...
of the first natural number is equal to the second. The name derives from
Henry Dudeney Henry Ernest Dudeney (10 April 1857 – 23 April 1930) was an English author and mathematician who specialised in logic puzzles and mathematical games. He is known as one of the country's foremost creators of mathematical puzzles. Early life ...
, who noted the existence of these numbers in one of his puzzles, ''Root Extraction'', where a professor in retirement at Colney Hatch postulates this as a general method for root extraction.


Mathematical definition

Let n be a natural number. We define the Dudeney function for base b > 1 and
power Power most often refers to: * Power (physics), meaning "rate of doing work" ** Engine power, the power put out by an engine ** Electric power * Power (social and political), the ability to influence people or events ** Abusive power Power may a ...
p > 0 F_ : \mathbb \rightarrow \mathbb to be the following: :F_(n) = \sum_^ \frac where k = p\left(\lfloor \log_ \rfloor + 1\right) is the p times the number of digits in the number in base b. A natural number n is a Dudeney root if it is a fixed point for F_, which occurs if F_(n) = n. The natural number m = n^p is a generalised Dudeney number, and for p = 3, the numbers are known as Dudeney numbers. 0 and 1 are trivial Dudeney numbers for all b and p, all other trivial Dudeney numbers are nontrivial trivial Dudeney numbers. For p = 3 and b = 10, there are exactly six such integers : 1, 512, 4913, 5832, 17576, 19683 A natural number n is a sociable Dudeney root 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 F_, where F_^k(n) = n for a positive integer k, and forms a cycle of period k. A Dudeney root is a sociable Dudeney root with k = 1, and a amicable Dudeney root is a sociable Dudeney root with k = 2. Sociable Dudeney numbers and amicable Dudeney numbers are the powers of their respective roots. The number of iterations i needed for F_^(n) to reach a fixed point is the Dudeney function's persistence of n, and undefined if it never reaches a fixed point. It can be shown that given a number base b and power p, the maximum Dudeney root has to satisfy this bound: :n \leq (b - 1)(1 + p + \log_) = (b - 1)(1 + p + p \log_)) implying a finite number of Dudeney roots and Dudeney numbers for each order p and base b. F_ is the
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 ...
. The only Dudeney numbers are the single-digit numbers in base b, and there are no periodic points with prime period greater than 1.


Dudeney numbers, roots, and cycles of ''F''''p'',''b'' for specific ''p'' and ''b''

All numbers are represented in base b.


Extension to negative integers

Dudeney numbers 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 Dudeney function described in the definition above to search for Dudeney roots, numbers 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 dudeneyf(x: int, p: int, b: int) -> int: """Dudeney function.""" y = pow(x, p) total = 0 while y > 0: total = total + y % b y = y // b return total def dudeneyf_cycle(x: int, p: int, b: int) -> List: seen = [] while x not in seen: seen.append(x) x = dudeneyf(x, p, b) cycle = [] while x not in cycle: cycle.append(x) x = dudeneyf(x, p, 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 ...
* Factorion *
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 *
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 * Perfect digital invariant * Sum-product number


References

*H. E. Dudeney, ''536 Puzzles & Curious Problems'', Souvenir Press, London, 1968, p 36, #120.


External links


Generalized Dudeney Numbers

Proving There are Only Six Dudeney Numbers
{{Classes of natural numbers Arithmetic dynamics Base-dependent integer sequences