|
|
A083445
|
|
Largest n-digit number minus the product of its digits; i.e., a(n) = 99999... (n 9's) - 9^n.
|
|
2
|
|
|
18, 270, 3438, 40950, 468558, 5217030, 56953278, 612579510, 6513215598, 68618940390, 717570463518, 7458134171670, 77123207545038, 794108867905350, 8146979811148158, 83322818300333430, 849905364703000878, 8649148282327007910, 87842334540943071198
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
2,1
|
|
LINKS
|
|
|
FORMULA
|
a(n) = (10^n - 1) - 9^n.
a(n) = 20*a(n-1) - 109*a(n-2) + 90*a(n-3) with a(2)=18, a(3)=270, a(4)=3438. - Harvey P. Dale, Sep 05 2015
G.f.: 18*x^2*(1 - 5*x) / ((1 - x)*(1 - 9*x)*(1 - 10*x)). - Colin Barker, Jul 29 2017
|
|
MATHEMATICA
|
Table[10^n-9^n-1, {n, 2, 20}] (* or *) LinearRecurrence[{20, -109, 90}, {18, 270, 3438}, 20] (* Harvey P. Dale, Sep 05 2015 *)
|
|
PROG
|
(PARI) Vec(18*x^2*(1 - 5*x) / ((1 - x)*(1 - 9*x)*(1 - 10*x)) + O(x^30)) \\ Colin Barker, Jul 29 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,easy,nonn
|
|
AUTHOR
|
Amarnath Murthy and Meenakshi Srikanth (menakan_s(AT)yahoo.com), May 01 2003
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|