[go: up one dir, main page]

login
A114605
Sum of first n digits of e to digit-wise power of first n digits of Pi.
1
8, 15, 16, 24, 56, 134217784, 134217785, 134479929, 134479961, 134480473, 134481497, 134872122, 522292611, 522292611, 522554755, 522554880, 522554884, 522554911, 522945536, 522945617
OFFSET
1,1
LINKS
Eric Weisstein's World of Mathematics, Pi Digits.
Eric Weisstein's World of Mathematics, e.
FORMULA
a(n) = Sum_{i=1..n} A001113(i)^A000796(i).
EXAMPLE
Since e = 2.71828182845904523536028747135266249775724709369995957496696762772407663...
and Pi =
3.1415926535897932384626433832795028841971693993751058209749445923078164062...
a(1) = 8 = 2^3.
a(2) = 15 = 2^3 + 7^1.
a(3) = 16 = 2^3 + 7^1 + 1^4.
a(4) = 24 = 2^3 + 7^1 + 1^4 + 8^1.
a(5) = 56 = 2^3 + 7^1 + 1^4 + 8^1 + 2^5.
a(6) = 134217784 = 2^3 + 7^1 + 1^4 + 8^1 + 2^5 + 8^9.
MATHEMATICA
Module[{nn=20, pi, ee}, pi=RealDigits[Pi, 10, nn][[1]]; ee=RealDigits[E, 10, nn] [[1]]; Table[Total[Take[ee, n]^Take[pi, n]], {n, nn}]] (* Harvey P. Dale, Jan 13 2017 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jonathan Vos Post, Feb 17 2006
STATUS
approved