OFFSET
0,1
EXAMPLE
a(4)=43 because there are 43 heptagonal numbers with 4 digits.
MAPLE
Digits := 20: A117718 := proc(n) if n = 1 then 3; else ceil(3/10*(1+sqrt(1+40*10^n/9))-1) - ceil(3/10*(1+sqrt(40*10^(n-1)/9))) +1 ; fi ; end: seq(A117718(n), n=1..30) ; # R. J. Mathar, Jan 22 2008
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), Apr 13 2006
EXTENSIONS
More terms from R. J. Mathar, Jan 22 2008
STATUS
approved