A list of 20 somehow related items was coded, 6 samples provided below:
1: 36413076
3: 1722105892
6: 27369460
10: 59883983524
13: 963429165604
16: 1799724844
Please recover the original list, all items in proper order. While some entries might contain more than one word, the spaces are ignored while coding.
1st three solvers are requested to publish no more than 2 words, properly placed, & not comment about
the nature of the list.
Clearly, they may complete later.
I happened to be browsing through Recently Posted Solutions and was reading the solution for "Two Encrypted Questions II". I decided to try the same encryption scheme and it worked.
The first part of this program (the decryption) was (obviously) written first. Once the encryption scheme was verified the second part was added.
The order of items in the decryption part is uncertain. The single digit ones match up but not the double digit ones. I had noticed that there are only 11 categories listed at the top of the home page, but the puzzle title implies 20. If one clicks on All Problem Categories, one sees 20 categories when one includes subcategories.
But then how is SHAPES number 3, and GAMES number 6? ... only by skipping over Liars and Knights and Weights and Scales. So in setting up a sequence I did the major categories first and then did the subcategories starting at the top, so the puzzle's item 10 is my item 8. I don't know a consistent way of getting the ordinal numbers to match; like, why would Calculus, the puzzle's 13 and my 20, come before Tricks (puzzle's 15 , my 16)?
clearvars, clc
c= [ 1, 36413076 ; ...
3, 1722105892 ; ...
6, 27369460 ; ...
10, 59883983524 ; ...
13, 963429165604 ; ...
16, 1799724844 ]
for i=1:6
for b=36
m=dec2base(c(i,2),b);
disp([char(string(c(i,1))) ' ' m])
end
end
cats={'LOGIC','PROBABILITY','SHAPES','GENERAL','NUMBERS','GAMES','PARADOXES', ...
'RIDDLES','JUSTMATH','SCIENCE','ALGORITHMS','LIARSANDKNIGHTS', ...
'WEIGHTSANDSCALES','GEOMETRY','TRICKS','WORDPROBLEMS','CRYPTOGRAPHY', ...
'SEQUENCES','FAMOUSRIDDLES','CALCULUS'};
for i=1:20
n=base2base(cats{i},36,10);
disp([sprintf('%2d: ',i) cats{i} ' ' n])
end
Note the "for b=36". It originally had a range, when I was trying to determine which base was used.
The function base2base was downloaded from the MATLAB website, as the built-in base2dec is limited to double precision output and some categories require larger decimal numbers.
c =
1 36413076
3 1722105892
6 27369460
10 59883983524
13 963429165604
16 1799724844
1 LOGIC
3 SHAPES
6 GAMES
10 RIDDLES
13 CALCULUS
16 TRICKS
1: LOGIC 36413076
2: PROBABILITY 94214670939394198
3: SHAPES 1722105892
4: GENERAL 35714363565
5: NUMBERS 51917462920
6: GAMES 27369460
7: PARADOXES 71370790110244
8: RIDDLES 59883983524
9: JUSTMATH 1555965390149
10: SCIENCE 61706416046
11: ALGORITHMS 1076150608338052
12: LIARSANDKNIGHTS 132081298664365598395456
13: WEIGHTSANDSCALES 7163487253745902777177828
14: GEOMETRY 1285790409790
15: TRICKS 1799724844
16: WORDPROBLEMS 4302423138120792148
17: CRYPTOGRAPHY 1681702616080161430
18: SEQUENCES 80146610635924
19: FAMOUSRIDDLES 72474896925266154148
20: CALCULUS 963429165604
>>
|
Posted by Charlie
on 2021-12-24 12:50:19 |