OFFSET
1,2
COMMENTS
For even indices a(2k) = 2*10^k-1, hence only odd powers of 10 are considered in this sequence.
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..500
FORMULA
a(n)=10^(2n-1)-A061433(2n-1).
a(n) = 10^(2*n-1) - floor(sqrt(10^(2*n-1)))^2.
EXAMPLE
a(1) = 1 because 10 - 3^2 = 1.
a(2) = 39 because 1000 - 31^2 = 39.
a(3) = 144 because 100000 - 316^2 = 144.
MATHEMATICA
Table[10^n-Floor[(10^n-1)^(1/2)]^2, {n, 1, 40, 2}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Apr 12 2007
STATUS
approved