login
A395832
Number of hexadecimal strings of length n that do not contain a specific string xx (where x is a single digit).
4
1, 16, 255, 4065, 64800, 1032975, 16466625, 262494000, 4184409375, 66703550625, 1063319400000, 16950344259375, 270204954890625, 4307329487250000, 68663016632109375, 1094555191790390625, 17448273126337500000, 278142424771918359375, 4433860468473837890625, 70680043398686343750000
OFFSET
0,2
FORMULA
a(n) = 16^n - A340156(16,n).
a(n) = 16^n - A395830(n).
G.f.: -(x + 1)/(15*x^2 + 15*x - 1). - Amiram Eldar, May 16 2026
MATHEMATICA
LinearRecurrence[{15, 15}, {1, 16}, 20] (* Amiram Eldar, May 16 2026 *)
PROG
(PARI) Vec(-(x + 1)/(15*x^2 + 15*x - 1) + O(x^20))
KEYWORD
nonn,easy
AUTHOR
A.H.M. Smeets, May 16 2026
STATUS
approved