login
A395831
Number of octal strings of length n that do not contain a specific string xx (where x is a single digit).
4
1, 8, 63, 497, 3920, 30919, 243873, 1923544, 15171919, 119668241, 943881120, 7444845527, 58721086529, 463161524392, 3653178276447, 28814378605873, 227272898176240, 1792610937474791, 14139186849557217, 111522584509224056, 879632399511468911, 6938084888144850769
OFFSET
0,2
FORMULA
a(n) = 8^n - A340156(8,n).
a(n) = 8^n - A395829(n).
G.f.: -(x + 1)/(7*x^2 + 7*x - 1). - Amiram Eldar, May 16 2026
MATHEMATICA
LinearRecurrence[{7, 7}, {1, 8}, 22] (* Amiram Eldar, May 16 2026 *)
PROG
(PARI) Vec(-(x + 1)/(7*x^2 + 7*x - 1) + O(x^22))
KEYWORD
nonn,easy
AUTHOR
A.H.M. Smeets, May 16 2026
STATUS
approved