Project Euler 443 - GCD Sequence

Official link: https://projecteuler.net/problem=443