This cryptic will be more interesting if you have a knowledge of German. VIER and NEUN are both perfect squares. If you were told the number represented by VIER, you could deduce the number represented by NEUN.
Alternatively, if you were told the number represented by NEUN, you could deduce the number represented by VIER.
What are the values of VIER and NEUN? (The same letter has the same value in both words, and there are no leading zeros.)
clearvars
digs='0123456789';
VIERNUs=combinator(10,6,'p');
VIERNUs=digs(VIERNUs);
for i=1:length(VIERNUs)
VIERNU=VIERNUs(i,:);
vier=str2double(VIERNU(1:4));
neun=str2double(VIERNU([5 3 6 5]));
if vier>999 && neun > 999
sr=round(sqrt(vier));
if sr^2==vier
sr=round(sqrt(neun));
if sr^2==neun
disp([vier neun])
end
end
end
end
finds these possible values:
VIER NEUN my annotation
6241 9409 no dup's
7056 1521 dup 1521
4356 1521 dup 1521
1369 4624 dup 1369
1369 5625 dup 5625 dup 1369
4761 5625 dup 5625
1764 5625 dup 5625
7569 1681 dup 7569
7569 4624 dup 7569
VIER = 6241 = 79^2
NEUN = 9409 = 97^2
|
Posted by Charlie
on 2025-02-07 08:48:33 |