"Numerical Pattern"

Given the following number representing a pattern:

2053 = 2^0 + 5^3 = 1 + 125 = 126
Note: ^ means exponent

Look above at the number "20"; in this sequence it represents 2 to the 0 power which is 1. The other number "53" represents 5 to the 3rd power which is 125. Then final answer is calculated by the sum of each term.

Given this number below:

342345820139586830203845861938475676

What is the answer using the above pattern?


This is a fairly simple challenge once you understand the pattern... loop over the number with jumps of 2, find the power for the current 2 and add that to the result. PHP is useful for this challenge as there is no need for string to no conversion!

Awnser:

Source: