OFFSET
1,1
COMMENTS
If m is a term, then 10*m is another term.
EXAMPLE
34 is a term because 34^2 = 1156.
149 is not a term because 149^2 = 22201.
MATHEMATICA
Select[Range[10, 600], (d = IntegerDigits[#^2])[[1]] == d[[2]] != d[[3]] &] (* Amiram Eldar, Aug 05 2021 *)
PROG
(Python)
def ok(n): s = str(n*n); return len(s) > 2 and s[0] == s[1] != s[2]
print(list(filter(ok, range(582)))) # Michael S. Branicky, Aug 05 2021
(PARI) isok(m) = my(d=digits(m^2)); (#d > 2) && (d[2] == d[1]) && (d[3] != d[2]); \\ Michel Marcus, Aug 05 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Aug 05 2021
STATUS
approved