In the following alphametic I did not provide the SUM and left to you the task of finding an unknown valid English word, fitting the math equation and answering the question “que sera?“
UKRAINE + RUSSIA = ?…?
Hint: It can be done, trust me…
>> whatHappensNext
0694235 901124 serener
8021734 285571 unkinks
0521437 208841 enures
0348217 405528 eskers
3970254 731120 erasure
3970164 732210 erasure
0795236 901125 serenes
0615932 107795 senses
0619753 102279 issues
0975236 701125 serenes
7930218 375520 erasure
7930128 376610 erasure
0812954 106692 irises
0182954 806692 irises
6940137 465510 erasure
0432865 307782 skunks
0256943 507796 sansei
0625943 208895 senses
>>
Sorted on the words:
0521437 208841 enures
7930218 375520 erasure
6940137 465510 erasure
7930128 376610 erasure
3970254 731120 erasure
3970164 732210 erasure
0348217 405528 eskers
0812954 106692 irises
0182954 806692 irises
0619753 102279 issues
0256943 507796 sansei
0615932 107795 senses
0625943 208895 senses
0694235 901124 serener
0975236 701125 serenes
0795236 901125 serenes
0432865 307782 skunks
8021734 285571 unkinks
>>
Erasure has more than one solution (the numbers on the left for UKRAINE and RUSSIA).
Most others have a leading zero for Ukraine.
Only "unkinks" is left.
Perhaps there's a proper name that's available and makes more sense than "unkinks", but according to this, UNKINKS is the only rhs that will have a unique answer without having a leading zero in UKRAINE. It's too bad that "serener" leads to a leading zero.
digs=0:9;
codes=combinator(10,8,'p');
plain={'u','k','r','a','i','n','e','s'};
codes=digs(codes);
for i=1:length(codes)
code=char(string(codes(i,:)));
code=reshape(code,1,8);
for j=1:8
cypher{j}=code(j);
end
ukraine=code(1:7);
ukraine=strcat(ukraine(:,:));
russia=code([3 1 8 8 5 4]);
result=char(string(str2double(ukraine)+str2double(russia)));
result=replace(result,cypher,plain);
if length(strfind(result,digitsPattern))==0
if isword(result)
disp([ukraine, ' ', russia, ' ', result])
end
end
end
|
Posted by Charlie
on 2023-04-17 14:23:25 |