|
|
A232422
|
|
Integers n such that n^2 becomes another square under the map 8<=>9 (acting on the decimal digits).
|
|
0
|
|
|
621, 629, 6210, 6290, 43415, 44665, 62100, 62900, 113405, 113845, 434150, 446650, 621000, 629000, 677131, 677869, 918545, 971455, 1134050, 1138450, 1260718, 1264282, 1355425, 1391825, 3373885, 3375365, 3854525, 3867475, 4341500, 4466500, 6210000, 6290000, 6771310, 6778690, 9185450, 9714550
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
If n is a term then 10n is also a term.
|
|
LINKS
|
|
|
EXAMPLE
|
621^2=385641 <=> 395641 = 629^2, so both 621 and 629 are terms.
43415=1884862225 <=>1994962225=44665^2, so both 43415 and 44665 are terms.
|
|
MATHEMATICA
|
fQ[n_]:=Block[{id=IntegerDigits@n^2}, (MemberQ[id, 8]||MemberQ[id, 9])&&
IntegerQ[Sqrt[FromDigits[id/.{8->9, 9->8}]]]]; Reap[Do[If[fQ[n], Sow[n]], {n, 10000000}]][[2, 1]]
Select[Range[10^7], Max[IntegerDigits[#^2]]>7&&IntegerQ[Sqrt[ FromDigits[ IntegerDigits[ #^2]/.{8->9, 9->8}]]]&] (* Harvey P. Dale, Jun 17 2022 *)
|
|
CROSSREFS
|
A175789 (primes with similar property).
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|