%I #11 May 10 2024 11:28:39
%S 5,25,22925,22955665
%N Numbers k such that k and k^2 use only the digits 2, 5, 6 and 9.
%C Generated with DrScheme.
%C No additional terms up to 10^11. - _Harvey P. Dale_, Mar 12 2018
%H Jonathan Wellons, <a href="https://web.archive.org/web/20090206165028/http://jonathanwellons.com/shared-digits/">Tables of Shared Digits</a> [archived]
%e 22955665^2 = 526962555592225.
%t With[{c={2,5,6,9}},Select[Flatten[Table[FromDigits/@Tuples[c,n],{n,9}]],SubsetQ[c,IntegerDigits[#^2]]&]] (* _Harvey P. Dale_, Mar 12 2018 *)
%K base,nonn,more
%O 1,1
%A Jonathan Wellons (wellons(AT)gmail.com), Jan 22 2008