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.

A005060 a(n) = 5^n - 4^n.

Original entry on oeis.org

0, 1, 9, 61, 369, 2101, 11529, 61741, 325089, 1690981, 8717049, 44633821, 227363409, 1153594261, 5835080169, 29443836301, 148292923329, 745759583941, 3745977788889, 18798608421181, 94267920012849
Offset: 0

Views

Author

Keywords

Comments

Also, the number of numbers with at most n digits whose largest digit equals 4. - M. F. Hasler, May 03 2015
a(n) is divisible by 7 iff n is divisible by 6; for example: a(6) = 11529 = 7 * 1647 (see 'Les cahier du bac' or subtract A070365 and A153727 and locate zeros). - Bernard Schott, Oct 02 2020
a(n) is the number of n-digit numbers whose smallest decimal digit is 5. - Stefano Spezia, Nov 15 2023

References

  • Les Cahiers du Bac, Terminales C & E, Tome 1, 1985, Exercice 109, p. 18; Bac Rouen, Série C, 1978.

Crossrefs

Programs

Formula

a(n) = 5*a(n-1) + 4^(n-1). - Xavier Acloque, Oct 20 2003
From Mohammad K. Azarian, Jan 14 2009: (Start)
G.f.: 1/(1-5*x) - 1/(1-4*x).
E.g.f.: e^(5*x) - e^(4*x). (End)
a(n) = 9*a(n-1) - 20*a(n-2), a(0)=0, a(1)=1. - Vincenzo Librandi, Jan 28 2011