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 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. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
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 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. F_{p, b}(n) = \sum_{i=0}^{k - 1} \frac{n^p \bmod{b^{i+1}} - n^p \bmod b^i}{b^i} where k = p\left(\lfloor \log_{b}{n} \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_{p, b} , which occurs if F_{p, b}(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 for F_{p, b} , where F_{p,b}^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_{p,b}^{i}(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}{n^p}) = (b - 1)(1 + p + p \log_{b}{n})) implying a finite number of Dudeney roots and Dudeney numbers for each order p and base b . F_{1, b} is the digit sum. The only Dudeney numbers are the single-digit numbers in base b , and there are no periodic points with prime period greater than 1. ==Extension to negative integers== Dudeney numbers 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 Dudeney function described in the definition above to search for Dudeney roots, numbers and cycles in Python. 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[int]: 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 Factorion Happy number Kaprekar's constant Kaprekar number Meertens number Narcissistic number Perfect digit-to-digit invariant Perfect digital invariant Sum-product number ==External links== Generalized Dudeney Numbers Proving There are Only Six Dudeney Numbers
Cite this
"Dudeney number". 1764103809. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1324154077 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy