What is the mathematical relationship between the 3 integers of each triplet, and what comes next?
(the members of each triplet are determined solely by the relationship between the three integers; there is no direct calculation between different triplets)
(7, 2, 3)
(41, 4, 9)
(380, 12, 20)
(475, 15, 25)
(506, 16, 6)
(570, 18, 30)
(759, 24, 9)
(4901, 49, 99)
(36050, 114, 50)
(39845, 126, 155)
(48700, 154, 300)
(49964, 158, 36)
(50281, 159, 281)
(54075, 171, 75)
for i=1:100000
i2=char(string(i^2));
if mod(length(i2),2)==0
p1=str2double(i2(1:length(i2)/2));
p2=str2double(i2(length(i2)/2+1:end));
if sqrt(p1)==round(sqrt(p1))
if sqrt(p2)==round(sqrt(p2)) && p2~=0
fprintf('%8d %5d %5d\n',i, sqrt(p1), sqrt(p2))
end
end
end
end
7 2 3
41 4 9
380 12 20
475 15 25
506 16 6
570 18 30
759 24 9
4901 49 99
36050 114 50
39845 126 155
48700 154 300
49964 158 36
50281 159 281
54075 171 75
55973 177 277
72100 228 100
74946 237 54
79690 252 310
90125 285 125
99928 316 72
|
Posted by Charlie
on 2023-02-23 20:35:02 |