OFFSET
0,1
FORMULA
a(n) = (10^(m+1))n+5(10^m)+(10^m-n)
EXAMPLE
a(1) = 159 because at least three digits are required, so that n = 1, m = 1 yields a(1) = 100+50+(10-1) = 159
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Michael Joseph Halm, May 13 2004
STATUS
approved