OFFSET
0,3
COMMENTS
Number of ways to assign truth values to n quaternary conjunctions connected by disjunctions such that the proposition is true. For example, a(2) = 31, since for the proposition '(a & b & c & d) v (e & f & g & h)' there are 31 assignments that make the proposition true. - Ori Milstein, Dec 31 2022
Equivalently, the number of length-n words over the alphabet {0,1,..,15} with at least one letter = 15. - Joerg Arndt, Jan 01 2023
LINKS
Index entries for linear recurrences with constant coefficients, signature (31,-240).
FORMULA
a(0)=0, a(n) = 15*a(n-1) + 16^(n-1). - Vincenzo Librandi, Feb 09 2011
a(0)=0, a(1)=1, a(n) = 31*a(n-1) - 240*a(n-2). - Vincenzo Librandi, Feb 09 2011
MATHEMATICA
Table[16^n-15^n, {n, 0, 20}] (* or *) LinearRecurrence[{31, -240}, {0, 1}, 20] (* Harvey P. Dale, Jan 23 2021 *)
PROG
(PARI) a(n) = 16^n - 15^n; \\ Michel Marcus, Aug 26 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Frank Ellermann, Jun 05 2001
STATUS
approved