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!)
A083446 a(n) = ((10^n - 1) - 9^n)/9. 2
2, 30, 382, 4550, 52062, 579670, 6328142, 68064390, 723690622, 7624326710, 79730051502, 828681574630, 8569245282782, 88234318656150, 905219979016462, 9258090922259270, 94433929411444542, 961016475814111990 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
COMMENTS
Let k(n) be the largest n-digit number, 10^n - 1, and let m(n) be the product of its digits, 9^n; then a(n) = (k(n) - m(n))/9.
LINKS
FORMULA
G.f.: 2*x^2*(1-5*x)/((1-x)*(1-9*x)*(1-10*x)).
a(n) = 20*a(n-1) - 109*a(n-2) + 90*a(n-3). - Matthew House, Jan 16 2017
EXAMPLE
a(4) = (9999 - 9*9*9*9)/9 = 382.
MATHEMATICA
LinearRecurrence[{20, -109, 90}, {2, 30, 382}, 20] (* Harvey P. Dale, Oct 12 2017 *)
PROG
(PARI) for (i=2, 30, print1(((10^n -1) - 9^n)/9, ", "))))
CROSSREFS
Cf. A083445.
Sequence in context: A230610 A231597 A216119 * A230726 A091345 A147682
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy and Meenakshi Srikanth (menakan_s(AT)yahoo.com), May 01 2003
EXTENSIONS
More terms from Mohammed Bouayoun (bouyao(AT)wanadoo.fr), Mar 15 2004
Edited by Jon E. Schoenfield, Jan 16 2017
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 19 02:03 EDT 2024. Contains 371782 sequences. (Running on oeis4.)