OFFSET
1,3
LINKS
David A. Corneth, Table of n, a(n) for n = 1..6883
PROG
(Python)
from math import isqrt
from sympy.utilities.iterables import multiset_permutations as mp
def sqr(n): return isqrt(n)**2 == n
def ok(square):
s = str(square)
perms = (int("".join(p)) for p in mp(s, len(s)))
return len(set(p for p in perms if sqr(p))) == 1
def aupto(limit): return [k*k for k in range(isqrt(limit)+1) if ok(k*k)]
print(aupto(5476)) # Michael S. Branicky, Oct 18 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Jun 29 2004
EXTENSIONS
Definition clarified by N. J. A. Sloane, Jan 16 2014
STATUS
approved