Dudeney number

Last updated

In number theory, a Dudeney number in a given number base 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.

Contents

Mathematical definition

Let be a natural number. We define the Dudeney function for base and power to be the following:

where is the times the number of digits in the number in base .

A natural number is a Dudeney root if it is a fixed point for , which occurs if . The natural number is a generalised Dudeney number, [1] and for , the numbers are known as Dudeney numbers. and are trivial Dudeney numbers for all and , all other trivial Dudeney numbers are nontrivial trivial Dudeney numbers.

For and , there are exactly six such integers (sequence A061209 in the OEIS ):

A natural number is a sociable Dudeney root if it is a periodic point for , where for a positive integer , and forms a cycle of period . A Dudeney root is a sociable Dudeney root with , and a amicable Dudeney root is a sociable Dudeney root with . Sociable Dudeney numbers and amicable Dudeney numbers are the powers of their respective roots.

The number of iterations needed for to reach a fixed point is the Dudeney function's persistence of , and undefined if it never reaches a fixed point.

It can be shown that given a number base and power , the maximum Dudeney root has to satisfy this bound:

implying a finite number of Dudeney roots and Dudeney numbers for each order and base . [2]

is the digit sum. The only Dudeney numbers are the single-digit numbers in base , and there are no periodic points with prime period greater than 1.

Dudeney numbers, roots, and cycles of Fp,b for specific p and b

All numbers are represented in base .

Nontrivial Dudeney roots Nontrivial Dudeney numbers Cycles of Amicable/Sociable Dudeney numbers
2 2
2 3 211
2 4 321
2 5 431
2 6 541
273, 4, 612, 22, 51
2 8 7612 → 4 → 24 → 20 → 4
2 9 871
2 10 98113 → 16 → 13169 → 256 → 169
2115, 6, A23, 33, 91
2 12 BA19 → 13 → 14 → 1269 → 169 → 194 → 144
2134, 9, C, 1313, 63, B1, 1E6
214DC19 → 12 → 95B → 144 → 5B
2157, 8, E, 1634, 44, D1, 169

2 → 4 → 2

9 → B → 9

4 → 11 → 4

56 → 81 → 56

2 16 6, A, F24, 64, E1
32
3311, 222101, 20022212 → 21 → 1211122 → 110201 → 11122
342, 12, 13, 21, 2220, 3120, 11113, 23121, 33220
353, 13, 14, 22, 23102, 4022, 10404, 23403, 3224212 → 21 → 122333 → 20311 → 2333
3613, 15, 23, 243213, 10055, 23343, 3054411 → 12 → 111331 → 2212 → 1331
372, 4, 11, 12, 14, 15, 21, 2211, 121, 1331, 2061, 3611, 5016, 12561, 1464125 → 34 → 2525666 → 63361 → 25666
386, 15, 16330, 4225, 527017 → 26 → 176457 → 24630 → 6457
393, 7, 16, 17, 2530, 421, 4560, 5551, 17618

5 → 14 → 5

12 → 21 → 12

18 → 27 → 18

148 → 3011 → 148

1738 → 6859 → 1738

6658 → 15625 → 6658

3108, 17, 18, 26, 27512, 4913, 5832, 17576, 1968319 → 28 → 196859 → 21952 → 6859
3115, 9, 13, 15, 18, 22104, 603, 2075, 3094, 5176, A428

8 → 11 → 8

A → 19 → A

14 → 23 → 14

16 → 21 → 16

426 → 1331 → 426

82A → 6013 → 82A

2599 → 10815 → 2599

3767 → 12167 → 3767

31219, 1A, 1B, 28, 29, 2A5439, 61B4, 705B, 16B68, 18969, 1A8B4

8 → 15 → 16 → 11 → 8

13 → 18 → 21 → 14 → 13

368 → 2A15 → 3460 → 1331 → 368

1B53 → 4768 → 9061 → 2454 → 1B53

4211, 1011010001, 1001110001
431110011122 → 101 → 2212121201 → 111201101 → 12121201
443, 13, 21, 311101, 211201, 1212201, 12332101
454, 14, 22, 23, 312011, 202221, 1130421, 1403221, 4044121
4624, 32, 421223224, 3232424, 1344334414 → 23 → 14114144 → 1030213 → 114144
52110, 111, 10011111001100000, 100000110100111, 1110011010101001
531011200201120122 → 121 → 112 → 110 → 221122221122 → 1222021101011 → 1000022202102 → 110122100000 → 1122221122
542, 22200, 12012220021 → 33 → 102 → 30 → 2132122221 → 2321121033 → 13031110200 → 330300000 → 32122221
621101011011001000000111 → 1001 → 1010 → 11111100101110010001 → 10000001101111110001 → 11110100001001000000 → 11100101110010001
63101 → 112 → 121 → 1011212210202001 → 112011112120201 → 1011120101000101 → 1212210202001

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.

defdudeneyf(x:int,p:int,b:int)->int:"""Dudeney function."""y=pow(x,p)total=0whiley>0:total=total+y%by=y//breturntotaldefdudeneyf_cycle(x:int,p:int,b:int)->List:seen=[]whilexnotinseen:seen.append(x)x=dudeneyf(x,p,b)cycle=[]whilexnotincycle:cycle.append(x)x=dudeneyf(x,p,b)returncycle

See also

Related Research Articles

In mathematics, a transcendental number is a real or complex number that is not algebraic: that is, not the root of a non-zero polynomial with integer coefficients. The best-known transcendental numbers are π and e. The quality of a number being transcendental is called transcendence.

In recreational mathematics, a repunit is a number like 11, 111, or 1111 that contains only the digit 1 — a more specific type of repdigit. The term stands for "repeated unit" and was coined in 1966 by Albert H. Beiler in his book Recreations in the Theory of Numbers.

In mathematics, an automorphic number is a natural number in a given number base whose square "ends" in the same digits as the number itself.

In mathematics, a natural number in a given number base is a -Kaprekar number if the representation of its square in that base can be split into two parts, where the second part has digits, that add up to the original number. For example, in base 10, 45 is a 2-Kaprekar number, because 45² = 2025, and 20 + 25 = 45. The numbers are named after D. R. Kaprekar.

In recreational mathematics, a Keith number or repfigit number is a natural number in a given number base with digits such that when a sequence is created such that the first terms are the digits of and each subsequent term is the sum of the previous terms, is part of the sequence. Keith numbers were introduced by Mike Keith in 1987. They are computationally very challenging to find, with only about 100 known.

<span class="mw-page-title-main">Happy number</span> Numbers with a certain property involving recursive summation

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 , and . On the other hand, 4 is not a happy number because the sequence starting with and eventually reaches , the number that started the sequence, and so the process continues in an infinite cycle without ever reaching 1. A number which is not happy is called sad or unhappy.

Pollard's rho algorithm is an algorithm for integer factorization. It was invented by John Pollard in 1975. It uses only a small amount of space, and its expected running time is proportional to the square root of the smallest prime factor of the composite number being factorized.

In mathematics, a harshad number in a given number base is an integer that is divisible by the sum of its digits when written in that base. Harshad numbers in base n are also known as n-harshad numbers. Harshad numbers were defined by D. R. Kaprekar, a mathematician from India. The word "harshad" comes from the Sanskrit harṣa (joy) + da (give), meaning joy-giver. The term "Niven number" arose from a paper delivered by Ivan M. Niven at a conference on number theory in 1977.

In number theory, a self number or Devlali number in a given number base is a natural number that cannot be written as the sum of any other natural number and the individual digits of . 20 is a self number, because no such combination can be found. 21 is not, because it can be written as 15 + 1 + 5 using n = 15. These numbers were first described in 1949 by the Indian mathematician D. R. Kaprekar.

<span class="mw-page-title-main">Schönhage–Strassen algorithm</span> Multiplication algorithm

The Schönhage–Strassen algorithm is an asymptotically fast multiplication algorithm for large integers, published by Arnold Schönhage and Volker Strassen in 1971. It works by recursively applying fast Fourier transform (FFT) over the integers modulo . The run-time bit complexity to multiply two n-digit numbers using the algorithm is in big O notation.

In number theory, Kaprekar's routine is an iterative algorithm named after its inventor, Indian mathematician D. R. Kaprekar. Each iteration starts with a number, sorts the digits into descending and ascending order, and calculates the difference between the two new numbers.

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 would be

In number theory, a narcissistic number in a given number base is a number that is the sum of its own digits each raised to the power of the number of digits.

A sum-product number in a given number base is a natural number that is equal to the product of the sum of its digits and the product of its digits.

The digital root of a natural number in a given radix is the value obtained by an iterative process of summing digits, on each iteration using the result from the previous iteration to compute a digit sum. The process continues until a single-digit number is reached. For example, in base 10, the digital root of the number 12345 is 6 because the sum of the digits in the number is 1 + 2 + 3 + 4 + 5 = 15, then the addition process is repeated again for the resulting number 15, so that the sum of 1 + 5 equals 6, which is the digital root of that number. In base 10, this is equivalent to taking the remainder upon division by 9, which allows it to be used as a divisibility rule.

In number theory, the multiplicative digital root of a natural number in a given number base 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:

In number theory, a factorion in a given number base is a natural number that equals the sum of the factorials of its digits. The name factorion was coined by the author Clifford A. Pickover.

In number theory, a perfect digit-to-digit invariant is a natural number in a given number base that is equal to the sum of its digits each raised to the power of itself. An example in base 10 is 3435, because . The term "Munchausen number" was coined by Dutch mathematician and software engineer Daan van Berkel in 2009, as this evokes the story of Baron Munchausen raising himself up by his own ponytail because each digit is raised to the power of itself.

In number theory and mathematical logic, a Meertens number in a given number base 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 the CWI, Amsterdam.

In number theory, a perfect digital invariant (PDI) is a number in a given number base () that is the sum of its own digits each raised to a given power ().

References

  1. "Generalized Dudeney Numbers".
  2. "Rebol : Proving There are Only Six Dudeney Numbers".