login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A016177 a(n) = 8^n - 7^n. 14
0, 1, 15, 169, 1695, 15961, 144495, 1273609, 11012415, 93864121, 791266575, 6612607849, 54878189535, 452866803481, 3719823438255, 30436810578889, 248242046141055, 2019169299698041, 16385984911571535, 132716292890482729, 1073129238309234975, 8664826172771491801 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Number of ways to assign truth values to n ternary conjunctions connected by disjunctions such that the proposition is true. For example, a(2) = 15, since for the proposition '(a & b & c) v (d & e & f)' there are 15 assignments that make the proposition true. - Ori Milstein, Dec 22 2022
Equivalently, the number of length-n words over the alphabet {0,1,...,7} with at least one letter = 7. - Joerg Arndt, Jan 01 2023
a(n) is also the number of n-digit numbers whose smallest decimal digit is 2. - Stefano Spezia, Nov 15 2023
LINKS
FORMULA
G.f.: x/((1-7x)*(1-8x)).
a(n) = numerator(f(n-1)) where f(n) = Integral_{x=0..1/4} (1-x/2)^n dx. And denominator(f(n)) = 4*(n+1)*8^n. - Al Hakanson (hawkuu(AT)excite.com), Feb 22 2004 [corrected by Michel Marcus, Dec 23 2022]
a(n) = 15*a(n-1) - 56*a(n-2), n > 1. - Philippe Deléham, Jan 01 2009
E.g.f.: e^(8*x) - e^(7*x). - Mohammad K. Azarian, Jan 14 2009
a(n) = 8*a(n-1) + 7^(n-1), a(0)=0. - Vincenzo Librandi, Feb 09 2011
MATHEMATICA
Table[8^n - 7^n, {n, 0, 20}] (* Harvey P. Dale, Jan 31 2011 *)
PROG
(PARI) a(n)=8^n-7^n \\ Charles R Greathouse IV, Sep 28 2015
CROSSREFS
Sequence in context: A202123 A201087 A138973 * A125427 A016279 A036734
KEYWORD
nonn,easy
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 28 16:47 EDT 2024. Contains 372091 sequences. (Running on oeis4.)