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.

Showing 1-4 of 4 results.

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

A255463 a(n) = 3*4^n - 2*3^n.

Original entry on oeis.org

1, 6, 30, 138, 606, 2586, 10830, 44778, 183486, 747066, 3027630, 12228618, 49268766, 198137946, 795740430, 3192527658, 12798808446, 51281327226, 205383589230, 822309197898, 3291561314526, 13173218826906, 52713796014030, 210917946175338, 843860071059006, 3376005143308986, 13505715150454830
Offset: 0

Views

Author

Keywords

Comments

a(n-1) is also the number of n-digit numbers whose largest decimal digit is 3. - Stefano Spezia, Nov 15 2023

Crossrefs

Cf. A255462.
First differences of 4^n - 3^n = A005061(n). See A257285, A257286, A257287, A257288, A257289 for first differences of 5^n - 4^n, ..., 9^n - 8^n. - M. F. Hasler, May 04 2015

Programs

Formula

G.f.: (1-x)/((1-3*x)*(1-4*x)).
a(n+1) = 7*a(n) - 12*a(n-1) with a(0)=1, a(1)=6.
a(n) = A255462(2^n-1).
E.g.f.: exp(3*x)*(3*exp(x) - 2). - Stefano Spezia, Nov 15 2023

Extensions

Simpler definition from N. J. A. Sloane, Mar 10 2015

A257286 a(n) = 5*6^n - 4*5^n.

Original entry on oeis.org

1, 10, 80, 580, 3980, 26380, 170780, 1087180, 6835580, 42575980, 263268380, 1618672780, 9907349180, 60420657580, 367406757980, 2228854610380, 13495197974780, 81581539411180, 492540994279580, 2970504754739980, 17899322473752380
Offset: 0

Views

Author

M. F. Hasler, May 03 2015

Keywords

Comments

First differences of 6^n - 5^n = A005062.
a(n-1) is the number of numbers with n digits having the largest digit equal to 5. Or, equivalently, number of n-letter words over a 6-letter alphabet {a,b,c,d,e,f}, which must not start with the first letter of the alphabet, and in which the last letter of the alphabet must appear.

Crossrefs

Cf. A005062.
Coincides with A125373 only for the first terms.

Programs

  • Magma
    [5*6^n-4*5^n: n in [0..20]]; // Vincenzo Librandi, May 04 2015
  • Mathematica
    Table[5 6^n - 4 5^n, {n, 0, 30}] (* Vincenzo Librandi, May 04 2015 *)
  • PARI
    a(n)=5*6^n-4*5^n
    

Formula

a(n) = 11 a(n-1) - 30 a(n-2).
G.f.: (1-x)/((1-5*x)*(1-6*x)). - Vincenzo Librandi, May 04 2015
E.g.f.: exp(5*x)*(5*exp(x) - 4). - Stefano Spezia, Nov 15 2023

A257289 a(n) = 8*9^n - 7*8^n.

Original entry on oeis.org

1, 16, 200, 2248, 23816, 243016, 2416520, 23583688, 226933256, 2159839816, 20378082440, 190918934728, 1778399954696, 16486635929416, 152228014061960, 1400838452135368, 12853836673840136, 117654854901535816, 1074656292809619080, 9798007424852945608
Offset: 0

Views

Author

M. F. Hasler, May 03 2015

Keywords

Comments

First differences of 9^n - 8^n = A016185.
a(n-1) is the number of numbers with n digits having the largest digit equal to 8. Note that this is independent of the base b > 8.
Equivalently, number of n-letter words over a 9-letter alphabet, which must not start with the last letter of the alphabet, and in which the first letter of the alphabet must appear.

Crossrefs

Programs

  • Magma
    [8*9^n-7*8^n: n in [0..20]]; // Vincenzo Librandi, May 04 2015
    
  • Mathematica
    Table[8 9^n - 7 8^n, {n, 0, 20}] (* Vincenzo Librandi, May 04 2015 *)
    LinearRecurrence[{17,-72},{1,16},30] (* Harvey P. Dale, May 26 2019 *)
  • PARI
    a(n)=8*9^n-7*8^n
    
  • Sage
    [8*9^n-7*8^n for n in (0..20)] # Bruno Berselli, May 04 2015

Formula

G.f.: (1-x)/((1-8*x)*(1-9*x)). - Vincenzo Librandi, May 04 2015
E.g.f.: exp(8*x)*(8*exp(x) - 7). - Stefano Spezia, Nov 15 2023
Showing 1-4 of 4 results.