This is a base 8 multiplication. A well known French name is the key.
L O T I
R A V I
-----------
* * * * T
L * * * *
* * * * I
O * * * *
-----------------
L * * * E * O T
(In reply to
Lancelot by Math Man)
% lotiravnce
p=perms('0123456789');
for i=1:length(p);
s=p(i,:);
if s(1)~='0' && s(5)~='0'
loti=str2double(s(1:4));
ravi=str2double(s([5:7 4]));
lancelot=str2double(s([1 6 8:10 1:3]));
if loti*ravi==lancelot
disp([loti ravi lancelot])
end
end
end
finds no solutions for loti * ravi = lancelot.
The code included above to check if I make any coding error in the subscripts. Read the colons as defining a range from start position to end position. The comment at top is for reference as to which positions are considered to be which letters.
Added later:
This had been for base 8, which would mean two of the letters required for loti, ravi and lancelot could not be used.
Edited on April 29, 2024, 9:26 pm
|
Posted by Charlie
on 2024-04-29 21:18:15 |