OFFSET
1,2
COMMENTS
Conjecture: total number of digits of a(n) is always 2*n-1.
This conjecture is false: length(a(6)) = 10 != 2*6-1 = 11.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..150
FORMULA
a(n) = A119998(n)^2.
EXAMPLE
a(2) = 225 because none of 11, 22, 33, 44, 55, 66, 77, 88, 99, any integer from 110 to 119, or any integer from 220 to 224 is a square, but 15^2 = 225.
PROG
(PARI) a(n) = {if (n == 1, return (1)); ok = 0; i = 1; while (! ok, i++; d = digits(i^2, 10); if (#d >= n, ok = 1; for (k = 2, n, if (d[k] != d[1], ok = 0; break; ); ); ); ); return (i^2); } \\ Michel Marcus, Jun 14 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
J. Lowell, Aug 25 2011
EXTENSIONS
More terms from Alois P. Heinz, Sep 02 2011
STATUS
approved