3 ms·
Didn't knew that something like that could be coded in Mathematica.
by Kibo 17y ago
Didn't knew that something like that could be coded in Mathematica.
- zackattack 17y agoIndeed, Wolfram himself once solved a Google puzzle (to encourage job applicants) using Mathematica. It was, what's the pattern here, and what's the next row? 1 11 21 1211 111221 312211
- rincewind 17y agoGoogle is smart enough for this: http://www.google.com/search?q=1%2011%2021%201211%20111221%20312211 http://www.google.com/search?q=1%2011%2021%201211%20111221%2...
- tesseract 17y agoBut why Google when you can OEIS? http://www.research.att.com/~njas/sequences/ http://www.research.att.com/~njas/sequences/
- zackattack 17y agoThis is an awesome resource.
- zackattack 17y agoOnly after they posted the puzzle did solutions pop up on their own search engine. :)
- est 17y agoI always find these puzzles odd Why can't this row be valid? 1 11 21 1211 111221 312211 1 11 21 1211 111221 312211 1 11 21 1211 111221 312211 .... Why does it have to be 13112221? Is it just a most close answer according to average math pupil's knowledge model psychologically?
- frig 17y agoYeah, the "next # in the sequence" things are in theory dubious but in practice the theoretical unsoundness doesn't really cause issues (in the sense that: the people you'd want to select for will often find the pattern you want them to find, and many of the people you want to select against won't find that pattern). The real meaning of what they're asking for is something like: - I assert that there's a simple-but-nontrivial "algorithm" that generates this sequence. Find that algorithm, and use it to find the "next number in the sequence". ...but then you need a definition of "trivial", which is a lot of work (and most applicants know "trivial" when they see it: def sequence(i): return [1,11,21,1211,111221, 312211][i % 5] ...is "trivial", so why bother explaining it that way when most applicants already "know" that's the wrong answer? Doing a more-formal definition probably gets you into issues of Komolgorov complexity, which most applicants will not know much about.