OFFSET
1,1
COMMENTS
The 331st digit of Pi and the 331st digit of e are both 0, so to generate any additional terms of the sequence beyond 330 terms one would have to define 0^0 to be either 0 or 1. - Harvey P. Dale, Aug 05 2014
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..300
Eric Weisstein's World of Mathematics, Pi Digits.
Eric Weisstein's World of Mathematics, e.
EXAMPLE
Since Pi =
3.1415926535897932384626433832795028841971693993751058209749445923078164062...
and e =
2.71828182845904523536028747135266249775724709369995957496696762772407663...
we have:
a(1) = 9 = 3^2.
a(2) = 10 = 3^2 + 1^7.
a(3) = 14 = 3^2 + 1^7 + 4^1.
a(4) = 15 = 3^2 + 1^7 + 4^1 + 1^8.
a(5) = 40 = 3^2 + 1^7 + 4^1 + 1^8 + 5^2.
a(6) = 43046761 = 3^2 + 1^7 + 4^1 + 1^8 + 5^2 + 9^8.
MATHEMATICA
With[{nn=30}, Accumulate[RealDigits[Pi, 10, nn][[1]]^RealDigits[E, 10, nn] [[1]]]] (* Harvey P. Dale, Aug 05 2014 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jonathan Vos Post, Feb 19 2006
STATUS
approved