OFFSET
1,1
COMMENTS
The terminal digits are 00 or 44.
EXAMPLE
150 is a term because 150^2 = 22500.
212 is a term because 212^2 = 44944 (smallest square with 2 times two 4's).
2788 is not a term because 2788^2 = 7772944.
MATHEMATICA
Select[Range[32, 3500], (d = IntegerDigits[#^2])[[1]] == d[[2]] != d[[3]] && d[[-1]] == d[[-2]] != d[[-3]] &] (* Amiram Eldar, Aug 03 2021 *)
PROG
(Python)
def ok(n):
s = str(n*n)
if len(s) < 4: return False # there are no ok squares with < 4 digits
return s[0] == s[1] != s[2] and s[-1] == s[-2] != s[-3]
print(list(filter(ok, range(3411)))) # Michael S. Branicky, Aug 03 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Aug 03 2021
STATUS
approved