cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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.

This page as a plain text file.
%I A129897 #14 Feb 24 2021 06:05:51
%S A129897 5,58,585,5859,58597,585987,5859873,58598744,585987447,5859874481,
%T A129897 58598744819,585987448203,5859874482048,58598744820487,
%U A129897 585987448204883,5859874482048838,58598744820488384,585987448204883846,5859874482048838473,58598744820488384737
%N 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.
%F A129897 a(n) = floor(floor(Pi*10^n) + floor(exp(1)*10^n)), Pi=3.14159..., e=2.71828....
%e A129897 From _Jon E. Schoenfield_, Feb 24 2021: (Start)
%e A129897 n=1: 2      + 3      = 5      --> a(1) = 5;
%e A129897 n=2: 2.7    + 3.1    = 5.8    --> a(2) = 58;
%e A129897 n=3: 2.71   + 3.14   = 5.85   --> a(3) = 585;
%e A129897 n=4: 2.718  + 3.141  = 5.859  --> a(4) = 5859;
%e A129897 n=5: 2.7182 + 3.1415 = 5.8597 --> a(5) = 58597; etc.
%e A129897 (End)
%t A129897 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 A129897 Cf. A011543, A011545.
%K A129897 nonn,base,less
%O A129897 0,1
%A A129897 Kevin J Davis (kevin_j_davis(AT)btinternet.com), Jun 04 2007
%E A129897 Corrected and extended by _Harvey P. Dale_, May 28 2016