Skip to content
Surf Wiki
Save to docs
general/arithmetic-dynamics

From Surf Wiki (app.surf) — the open knowledge base

Dudeney number

Sequence in number theory


Sequence in number theory

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.

Mathematical definition

Let n be a natural number. We define the Dudeney function for base b 1 and power p 0 F_{p, b} : \mathbb{N} \rightarrow \mathbb{N} to be the following: :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.

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

All numbers are represented in base b.

pbNontrivial Dudeney roots nNontrivial Dudeney numbers m = n^pCycles of F_{p, b}(n)Amicable/Sociable Dudeney numbers
22\varnothing\varnothing\varnothing\varnothing
23211\varnothing\varnothing
24321\varnothing\varnothing
25431\varnothing\varnothing
26541\varnothing\varnothing
273, 4, 612, 22, 51\varnothing\varnothing
287612 → 4 → 24 → 20 → 4
29871\varnothing\varnothing
21098113 → 16 → 13169 → 256 → 169
2115, 6, A23, 33, 91\varnothing\varnothing
212BA19 → 13 → 14 → 1269 → 169 → 194 → 144
2134, 9, C, 1313, 63, B1, 1E6\varnothing\varnothing
214DC19 → 12 → 95B → 144 → 5B
2157, 8, E, 1634, 44, D1, 169
2166, A, F24, 64, E1\varnothing\varnothing
32\varnothing\varnothing\varnothing\varnothing
3311, 222101, 20022212 → 21 → 1211122 → 110201 → 11122
342, 12, 13, 21, 2220, 3120, 11113, 23121, 33220\varnothing\varnothing
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
3108, 17, 18, 26, 27512, 4913, 5832, 17576, 1968319 → 28 → 196859 → 21952 → 6859
3115, 9, 13, 15, 18, 22104, 603, 2075, 3094, 5176, A428
31219, 1A, 1B, 28, 29, 2A5439, 61B4, 705B, 16B68, 18969, 1A8B4
4211, 1011010001, 1001110001\varnothing\varnothing
431110011122 → 101 → 2212121201 → 111201101 → 12121201
443, 13, 21, 311101, 211201, 1212201, 12332101\varnothing\varnothing
454, 14, 22, 23, 312011, 202221, 1130421, 1403221, 4044121\varnothing\varnothing
4624, 32, 421223224, 3232424, 1344334414 → 23 → 14114144 → 1030213 → 114144
52110, 111, 10011111001100000, 100000110100111, 1110011010101001\varnothing\varnothing
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
63\varnothing\varnothing101 → 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.

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

References

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

References

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

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Dudeney number — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report