Files
Nicholas Carrigan (he/him) c4fd49e5b7 chore: manual translations (#42811)
2021-07-10 09:53:54 +05:30

861 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f3e41000cf542c50fef6 Problem 119: Digit power sum 5 301745 problem-119-digit-power-sum

--description--

The number 512 is interesting because it is equal to the sum of its digits raised to some power: 5 + 1 + 2 = 8, and 8^3 = 512. Another example of a number with this property is 614656 = 28^4.

We shall define an to be the n-th term of this sequence and insist that a number must contain at least two digits to have a sum.

You are given that a_2 = 512 and a_{10} = 614656.

Find a_{30}.

--hints--

digitPowerSum() should return 248155780267521.

assert.strictEqual(digitPowerSum(), 248155780267521);

--seed--

--seed-contents--

function digitPowerSum() {

  return true;
}

digitPowerSum();

--solutions--

// solution required