A066557 Largest n-digit multiple of n.
9, 98, 999, 9996, 99995, 999996, 9999997, 99999992, 999999999, 9999999990, 99999999990, 999999999996, 9999999999990, 99999999999998, 999999999999990, 9999999999999984, 99999999999999990, 999999999999999990, 9999999999999999990, 99999999999999999980
Offset: 1
Links
- Harry J. Smith, Table of n, a(n) for n = 1..150
Programs
-
PARI
a(n) = { (10^n - 1)\n*n } \\ Harry J. Smith, Feb 22 2010
Formula
a(n) = floor((10^n-1)/n)*n.
Extensions
More terms and formula from Francisco Salinas (franciscodesalinas(AT)hotmail.com), Dec 24 2001