login
a(n) is the integer that results from truncating both e and Pi to n digits, adding the results, and discarding the decimal point.
0

%I #14 Feb 24 2021 06:05:51

%S 5,58,585,5859,58597,585987,5859873,58598744,585987447,5859874481,

%T 58598744819,585987448203,5859874482048,58598744820487,

%U 585987448204883,5859874482048838,58598744820488384,585987448204883846,5859874482048838473,58598744820488384737

%N a(n) is the integer that results from truncating both e and Pi to n digits, adding the results, and discarding the decimal point.

%F a(n) = floor(floor(Pi*10^n) + floor(exp(1)*10^n)), Pi=3.14159..., e=2.71828....

%e From _Jon E. Schoenfield_, Feb 24 2021: (Start)

%e n=1: 2 + 3 = 5 --> a(1) = 5;

%e n=2: 2.7 + 3.1 = 5.8 --> a(2) = 58;

%e n=3: 2.71 + 3.14 = 5.85 --> a(3) = 585;

%e n=4: 2.718 + 3.141 = 5.859 --> a(4) = 5859;

%e n=5: 2.7182 + 3.1415 = 5.8597 --> a(5) = 58597; etc.

%e (End)

%t 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 *)

%Y Cf. A011543, A011545.

%K nonn,base,less

%O 0,1

%A Kevin J Davis (kevin_j_davis(AT)btinternet.com), Jun 04 2007

%E Corrected and extended by _Harvey P. Dale_, May 28 2016