A129897 a(n) is the integer that results from truncating both e and Pi to n digits, adding the results, and discarding the decimal point.
5, 58, 585, 5859, 58597, 585987, 5859873, 58598744, 585987447, 5859874481, 58598744819, 585987448203, 5859874482048, 58598744820487, 585987448204883, 5859874482048838, 58598744820488384, 585987448204883846, 5859874482048838473, 58598744820488384737
Offset: 0
Examples
From _Jon E. Schoenfield_, Feb 24 2021: (Start) n=1: 2 + 3 = 5 --> a(1) = 5; n=2: 2.7 + 3.1 = 5.8 --> a(2) = 58; n=3: 2.71 + 3.14 = 5.85 --> a(3) = 585; n=4: 2.718 + 3.141 = 5.859 --> a(4) = 5859; n=5: 2.7182 + 3.1415 = 5.8597 --> a(5) = 58597; etc. (End)
Programs
-
Mathematica
Module[{nn=20,pi,e},pi=RealDigits[Pi,10,nn][[1]];e=RealDigits[E,10,nn] [[1]]; Table[FromDigits[Take[pi,n]]+FromDigits[Take[e,n]],{n,nn}]] (* Harvey P. Dale, May 28 2016 *)
Formula
a(n) = floor(floor(Pi*10^n) + floor(exp(1)*10^n)), Pi=3.14159..., e=2.71828....
Extensions
Corrected and extended by Harvey P. Dale, May 28 2016