OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..1998
FORMULA
a[n]=Floor[sqrt[(-1+10^n)/9]].
If n is even, a(n) = (10^(n/2)-1)/3. - Robert Israel, Nov 13 2017
MAPLE
seq(floor(sqrt((10^n-1)/9)), n=1..100); # Robert Israel, Nov 13 2017
MATHEMATICA
Floor[Sqrt[#]]&/@Table[FromDigits[PadRight[{}, n, 1]], {n, 30}] (* Harvey P. Dale, Sep 24 2016 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Labos Elemer, Jun 24 2004
STATUS
approved