reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
editing
proposed
A062892(a(n))>0.
A062892(a(n)) > 0.
(Python)
from math import isqrt
from sympy.utilities.iterables import multiset_permutations as mp
def sqr(n): return isqrt(n)**2 == n
def ok(n):
if sqr(n): return False
s = str(n)
return any(sqr(int("".join(p))) for p in mp(s, len(s)))
print([k for k in range(600) if ok(k)]) # Michael S. Branicky, Oct 18 2021
approved
editing
editing
approved
Harvey P. Dale, <a href="/A007937/b007937.txt">Table of n, a(n) for n = 1..2500</a>
approved
editing
editing
approved
Select[Range[600], !IntegerQ[Sqrt[#]]&&AnyTrue[FromDigits/@ Permutations[ IntegerDigits[ #]], IntegerQ[ Sqrt[#]]&]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 17 2020 *)
approved
editing