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.

A088924 Number of "9ish numbers" with n digits.

Original entry on oeis.org

1, 18, 252, 3168, 37512, 427608, 4748472, 51736248, 555626232, 5900636088, 62105724792, 648951523128, 6740563708152, 69665073373368, 716985660360312, 7352870943242808, 75175838489185272, 766582546402667448
Offset: 1

Views

Author

Marc LeBrun, Oct 23 2003

Keywords

Comments

First difference of A016189. ("9" can be replaced by any other nonzero digit, however only the 9ish numbers are closed under lunar multiplication.)
See A257285 - A257289 for first differences of 5^n-4^n, ..., 9^n-8^n. These also give the number of n-digit numbers whose largest digit is 5, 6, 7, 8, respectively. - M. F. Hasler, May 04 2015

Examples

			a(2) = 18 because 19, 29, 39, 49, 59, 69, 79, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98 and 99 are the eighteen two-digit 9ish numbers.
		

Crossrefs

Programs

Formula

a(n) = 9*10^(n-1) - 8*9^(n-1).
G.f.: x*(1 - x)/(1 - 19*x + 90*x^2). - Bobby Milazzo, May 02 2014
a(n) = 19*a(n-1) - 90*a(n-2). - Vincenzo Librandi, May 04 2015
E.g.f.: (81*exp(10*x) - 80*exp(9*x) - 1)/90. - Stefano Spezia, Nov 16 2023