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.

A299866 The sum of the first n terms of the sequence is the concatenation of the first n digits of the sequence, a(1) = 3.

This page as a plain text file.
%I A299866 #18 Mar 04 2018 19:47:38
%S A299866 3,30,297,2972,29727,297268,2972675,29726757,297267568,2972675675,
%T A299866 29726756750,297267567507,2972675675068,29726756750675,
%U A299866 297267567506755,2972675675067545,29726756750675457,297267567506754568,2972675675067545675,29726756750675456754,297267567506754567542
%N A299866 The sum of the first n terms of the sequence is the concatenation of the first n digits of the sequence, a(1) = 3.
%C A299866 The sequence starts with a(1) = 3 and is always extended with the smallest integer not yet present in the sequence and not leading to a contradiction.
%H A299866 Jean-Marc Falcoz, <a href="/A299866/b299866.txt">Table of n, a(n) for n = 1..300</a>
%F A299866 a(n) = c(n) - c(n-1), where c(n) = concatenation of the first n digits, c(n) ~ 0.33*10^n, a(n) ~ 0.297*10^n. See A300000 for the proof. - _M. F. Hasler_, Feb 22 2018
%e A299866 3 + 30 = 33 which is the concatenation of 3 and 3.
%e A299866 3 + 30 + 297 = 330 which is the concatenation of 3, 3 and 0.
%e A299866 3 + 30 + 297 + 2972 = 3302 which is the concatenation of 3, 3, 0 and 2.
%e A299866 From n = 3 on, a(n) can be computed directly as c(n) - c(n-1), cf. formula: a(3) = 330 - 33 = 297, a(4) = 3302 - 330 = 2972, etc. - _M. F. Hasler_, Feb 22 2018
%o A299866 (PARI) a(n,show=1,a=3,c=a,d=[a])={for(n=2,n,show&&print1(a",");a=-c+c=c*10+d[1];d=concat(d[^1],if(n>2,digits(a))));a} \\ _M. F. Hasler_, Feb 22 2018
%Y A299866 A300000 is the lexicographically first sequence of this type, with a(1) = 1.
%Y A299866 Cf. A299865, ..., A299872 for variants with a(1) = 2, ..., 9.
%K A299866 nonn,base,easy
%O A299866 1,1
%A A299866 _Eric Angelini_ and _Jean-Marc Falcoz_, Feb 21 2018