OFFSET
1,2
EXAMPLE
1, 16, 169, 169744 are all squares. [corrected by Harvey P. Dale, Aug 06 2019]
PROG
(PARI) f(n, num) = local(d, x); d = 1; while (1, x = sqrtint(num*10^d + 10^(d - 1) - 1) + 1; while (x^2 < (num + 1)*10^d && (x^2%10^d)%n, x++); if (x^2 < (num + 1)*10^d, return([x^2, x^2%10^d])); d++);
num = 0; for (n = 1, 10, p = f(n, num); print1(p[2], ", "); num = p[1]); \\ David Wasserman, Dec 03 2008
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Aug 04 2005
EXTENSIONS
More terms from David Wasserman, Dec 03 2008
Clarified definition. - N. J. A. Sloane, Sep 25 2023
STATUS
approved