login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A066557
Largest n-digit multiple of n.
4
9, 98, 999, 9996, 99995, 999996, 9999997, 99999992, 999999999, 9999999990, 99999999990, 999999999996, 9999999999990, 99999999999998, 999999999999990, 9999999999999984, 99999999999999990, 999999999999999990, 9999999999999999990, 99999999999999999980
OFFSET
1,1
LINKS
FORMULA
a(n) = floor((10^n-1)/n)*n.
PROG
(PARI) a(n) = { (10^n - 1)\n*n } \\ Harry J. Smith, Feb 22 2010
CROSSREFS
Sequence in context: A225608 A220490 A024115 * A289214 A121706 A306567
KEYWORD
nonn,base,changed
AUTHOR
Amarnath Murthy, Dec 17 2001
EXTENSIONS
More terms and formula from Francisco Salinas (franciscodesalinas(AT)hotmail.com), Dec 24 2001
STATUS
approved