Jump to content

Dudeney number

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 173.230.18.196 (talk) at 13:24, 28 September 2019 (Dudeney numbers, roots, and cycles of Fp,b for specific p and b). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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.

Mathematical definition

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

where is 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 Sociable Dudeney numbers
3 2
3 3 11, 22 2101, 200222 12 → 21 → 12 11122 → 110201 → 11122
3 4 2, 12, 13, 21, 22 20, 3120, 11113, 23121, 33220
3 5 3, 13, 14, 22, 23 102, 4022, 10404, 23403, 32242 12 → 21 → 12 2333 → 20311 → 2333
3 6 13, 15, 23, 24 3213, 10055, 23343, 30544 11 → 12 → 11 1331 → 2212 → 1331
3 7 2, 4, 11, 12, 14, 15, 21, 22 11, 121, 1331, 2061, 3611, 5016, 12561, 14641 25 → 34 → 25 25666 → 63361 → 25666
3 8 6, 15, 16 330, 4225, 5270
3 9 3, 7, 16, 17, 25 30, 421, 4560, 5551, 17618
3 10 8, 17, 18, 26, 27 512, 4913, 5832, 17576, 19683
3 11 5, 9, 13, 15, 18, 22, 25 104, 603, 2075, 3094, 5176, A428, 13874
4 2 11, 101 1010001, 1001110001
4 10 7, 22, 25, 28, 36 2401, 234256, 390625, 614656, 1679616

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, p, b):
    y = pow(x, p)
    total = 0
    while y > 0:
        total = total + y % b
        y = y // b
    return total

def dudeneyf_cycle(x, p, b):
    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

References

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