A Dudeney number is a positive integer that is a perfect cube such that the sum of its decimal digits is equal to the cube root of the number. There are exactly six such integers, i.e. 1 , 5 1 2 , 4 9 1 3 , 5 8 3 2 , 1 7 5 7 6 , and 1 9 6 8 3 :
⎩ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎧ 1 = 1 3 5 1 2 = 8 3 4 9 1 3 = 1 7 3 5 8 3 2 = 1 8 3 1 7 5 7 6 = 2 6 3 1 9 6 8 3 = 2 7 3 1 = 1 8 = 5 + 1 + 2 1 7 = 4 + 9 + 1 + 3 1 8 = 5 + 8 + 3 + 2 2 6 = 1 + 7 + 5 + 7 + 6 2 7 = 1 + 9 + 6 + 8 + 3 .
We can extend the definition to include not only perfect cubes but any perfect power. A k -Dudeney number will therefore be any positive integer such that the sum of its decimal digits is equal to the k th root of the number.
Find k = 2 ∑ 1 9 k D k , where D k is the biggest k -Dudeney number.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Problem Loading...
Note Loading...
Set Loading...
one-liner solution in M a t h e m a t i c a
Sum[Max@Select[Range@1000,Total@IntegerDigits[#^k]==#&],{k,2,19}]
which returns 2 0 1 7
here are the k D k numbers:
9, 27, 36, 46, 64, 68, 63, 81, 117, 108, 108, 146, 154, 199, 187, 216, 181, 207