Is it a sequence?
(Published on 14. November 2021, 12:00 by Mark Sweep)
It is about sequences from 1 to N here. Let me give you some examples, from which you can deduce the rules of these sequences.
Examples
Let’s start with 1 to 4. 1, 2, 3, 4 is valid. We can even reverse it and it will still be valid. Actually, it does not matter with how many numbers we do this, a sequence like 1, 2, …, N-1, N will always be valid, and in reverse it still is.
Let’s switch two numbers around, such that we get 1, 2, 4, 3. This is also still a valid sequence according to the rules, but none of the digits remains valid if we reverse the sequence to 3, 4, 2, 1.
Let me just give you one more example - with 1 to 7 - before we get into the real deal.
5, 3, 2, 7, 1, 6, 4. This is valid. However, if we reverse it, not a single number adheres to the rules anymore.
The puzzle
Now, here is the real puzzle:
?, 4, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 13, ?, ?
Obviously, this has lots of possible solutions. However, if we add some rules, a unique solution is possible with some hard work!
First of all, let’s say the reversed sequence must be completely invalid (not a single number may apply the sequence rules correctly).
In addition, we’re restricting adjacent digits, such that they cannot be consecutive, and their greatest common denominator must be 1.
Solution code: The whole sequence
Last changed on on 15. November 2021, 11:39
Solved by apc, PixelPlucker, Nylimb, filuta
Comments
on 4. May 2024, 21:49 by filuta
ok, that was something! thanks for such a cool experience.
on 15. November 2021, 11:38 by Mark Sweep
Reordered the text and clarified that the rules of the sequence should be deduced from the examples.
on 14. November 2021, 19:43 by Mark Sweep
@SKORP17
I mean the rules of this particular set of sequences. These rules should indeed be retrieved from the examples, after which they should be applied for the real puzzle.
Last changed on 14. November 2021, 17:47on 14. November 2021, 17:39 by SKORP17
welche Regeln? Ich sehe keine, oder muss man die ermitteln?
Last changed on 14. November 2021, 11:24on 14. November 2021, 11:22 by Mark Sweep
This is the first kind of sequence I have published here. Testers have said it was fair, but please let me know if there are any problems with it.
Also, big thanks to glum_hippo for help with the German translation!