Loops in a Sequence | International Mathematical Olympiad 2017 Problem 1

Your View map: