cp's OEIS Frontend

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.

A061252 a(n) = 16^n - 15^n.

Original entry on oeis.org

0, 1, 31, 721, 14911, 289201, 5386591, 97576081, 1732076671, 30276117361, 522861237151, 8942430185041, 151728638820031, 2557404559011121, 42864668012537311, 715027614225987601, 11878335717996660991
Offset: 0

Views

Author

Frank Ellermann, Jun 05 2001

Keywords

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

Crossrefs

Base 8: A016177, 4: A005061, 2: A000225, 10: A016189.

Programs

  • Mathematica
    Table[16^n-15^n,{n,0,20}] (* or  *) LinearRecurrence[{31,-240},{0,1},20] (* Harvey P. Dale, Jan 23 2021 *)
  • PARI
    a(n) = 16^n - 15^n; \\ Michel Marcus, Aug 26 2013

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
a(n) = A001025(n) - A001024(n). - Michel Marcus, Aug 26 2013