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.
%I A296004 #7 Mar 15 2025 02:57:52 %S A296004 2,9,6,1,8,4,4,3,2,4,2,0,3,0,8,0,2,7,4,4,1,2,5,3,8,5,8,4,2,9,3,9,3,1, %T A296004 3,8,1,5,9,8,5,8,8,3,7,0,9,1,9,8,4,1,4,5,0,0,4,1,0,4,8,8,0,3,3,2,3,9, %U A296004 6,2,0,3,9,8,9,3,3,1,3,9,4,1,6,6,2,4 %N A296004 Decimal expansion of the limiting ratio of terms in A296003. %C A296004 A296003(n)/A296003(n-1) -> 2.961844324..... %C A296004 See A296000 for a guide to related sequences and limiting ratios. %t A296004 mex[list_] := NestWhile[# + 1 &, 1, MemberQ[list, #] &]; %t A296004 a[0] = 2; a[1] = 4; b[0] = 1; %t A296004 a[n_] := a[n] = Sum[a[k]*b[n - k - 1], {k, 0, n - 1}]; %t A296004 b[n_] := b[n] = mex[Flatten[Table[Join[{a[n]}, {a[i], b[i]}], {i, 0, n - 1}]]]; %t A296004 Table[a[n], {n, 0, 100}]; (* A296003 *) %t A296004 t = N[Table[a[n]/a[n - 1], {n, 1, 500, 100}], 200] %t A296004 Take[RealDigits[Last[t], 10][[1]], 100] (* A296004 *) %Y A296004 Cf. A296000, A296003. %K A296004 nonn,easy,cons %O A296004 1,1 %A A296004 _Clark Kimberling_, Dec 07 2017