I stumbled upon a programming challenge where I needed to find the numbers whose summation of digits raised to the consecutive powers is equal to the number itself. Like for example: $89 = 8 ^ 1 + 9 ^ 2$

and the next in the series is 135
$135 = 1^1+3^2+5^3$

What are these type of numbers known as? Is there any generic test so as to check if the number is of this type?

I'm not much familiar with number theory so please forgive my ignorance.

If there is a similar question asked can someone point me in the right direction.


These numbers are A032779 in OEIS, but I don't know if there is a standard name for them.

  • 1
    $\begingroup$ Today I learned there's an online encyclopedia of Integer sequences, thank you so much @gandalf61. Next time I'll look there first $\endgroup$ – Aditya Cherla Mar 28 '17 at 9:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.