OFFSET
1,2
FORMULA
a(n) = (ceiling(sqrt((n+1)*10^(n-floor(log_10(10*n))))) - 1)^2 = (ceiling(sqrt((n+1)*10^(n-A055642(n)))) - 1)^2. - Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Nov 16 2002
MATHEMATICA
f[n_] := Module[{idn=IntegerDigits[n]}, FromDigits[Join[idn, Table[9, {n-Length[idn]}]]]]; Table[Floor[Sqrt[f[i]]]^2, {i, 30}]
PROG
(PARI) a(n) = if(n==1, return(1)); my(d=digits(n+1)); d=concat(d, vector(n-#digits(n))); floor(sqrt(fromdigits(d)-1))^2 \\ David A. Corneth, Jun 08 2019
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 08 2002
EXTENSIONS
More terms from Harvey P. Dale and Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Nov 14 2002
a(1) prepended and more terms from David A. Corneth, Jun 08 2019
STATUS
approved