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 A322054 #37 Jan 25 2024 04:10:17 %S A322054 10,99,981,9720,96309,954261,9455130,93684519,928256841,9197472240, %T A322054 91131561729,902961305721,8946835807050,88648174014939, %U A322054 878355088397901,8703029361715560,86232460051021149,854419404714630381,8465866782890863770 %N A322054 Number of decimal strings of length n that do not contain a specific string xx (where x is a single digit). %C A322054 See A322053 for the number that do contain the specified string. %H A322054 Robert P. P. McKone, <a href="/A322054/b322054.txt">Table of n, a(n) for n = 1..1000</a> %H A322054 Jean-Paul Allouche, Jeffrey Shallit, and Manon Stipulanti, <a href="https://arxiv.org/abs/2401.13524">Combinatorics on words and generating Dirichlet series of automatic sequences</a>, arXiv:2401.13524 [math.CO], 2024. %H A322054 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (9,9). %F A322054 G.f.: x*(10+9*x)/(1-9*x-9*x^2). %F A322054 a(n) = 9*a(n-1) + 9*a(n-2) for n >= 3. %e A322054 Suppose the string is 00. At length 2 there are 99 strings that do not contain it. At length 3 there are 19 strings that do not contain it, 000, 00x, and x00, where x is any nonzero digit. So a(3) = 1000-19 = 981. %t A322054 T[n_, k_] := LinearRecurrence[{n - 1, n - 1}, {n, n^2 - 1}, k]; %t A322054 T[10, {1, 19}] (* _Robert P. P. McKone_, Dec 31 2020 *) %Y A322054 Cf. A322052, A004189, A322053. %Y A322054 Suggested by A322628. %K A322054 nonn,base,easy %O A322054 1,1 %A A322054 _N. J. A. Sloane_, Dec 21 2018