Problem 1219. Mystery problem
Given integer x between 1 and 50, return integer y=mystery(x), where
mystery(1) = 111 mystery(6) = 809 ... mystery(46) = 1809 mystery(2) = 301 mystery(7) = 2120 ... mystery(47) = 1319 mystery(3) = 315 mystery(8) = 1413 ... mystery(48) = 1201 mystery(4) = 2301 mystery(9) = 1422 ... mystery(49) = 405 mystery(5) = 2325 mystery(10) = 1320 ... mystery(50) = 612
The rest are for you to determine. Your function should allow a row vector as input and produce a row vector as a result, e.g.,
mystery(1:3)=[111 301 315].
Hint: this is not really a mathematical problem--the answer will be just a lookup table.
Solution Stats
Problem Comments
-
11 Comments
US states ?
Another hint please.
wikipedia
You are correct that "US states" is a key part of the solution.
A key part is not a solution ...
All of the tags (except "mystery") are hints to the solution. Another hint is that all possible values for y=mystery(x) have to satisfy abs(y-1363.5)<=1262.5.
Only for crazy nerds.
Tim, you are a man of genius.
That may be a little excessive, but thank you.
Given how obvious the 'mystery' seems now that I've solved it, I can't believe how many totally wrong alleys I went down...
This was a tricky one!! but at least I found it!! ;-)
Tool I used: Wikipedia, excel and Matlab... XDDD
Can anyone explain the link behind the problem to someone who is not from US?
Solution Comments
Show commentsProblem Recent Solvers14
Suggested Problems
-
11307 Solvers
-
116 Solvers
-
341 Solvers
-
Sum the 'edge' values of a matrix
349 Solvers
-
1122 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!