Problem

Source: VIII International Festival of Young Mathematicians Sozopol 2017, Theme for 10-12 grade

Tags: number theory



Prove that, if there exist natural numbers $a_1,a_2…a_{2017}$ for which the product $(a_1^{2017}+a_2 )(a_2^{2017}+a_3 )…(a_{2016}^{2017}+a_{2017})(a_{2017}^{2017}+a_1)$ is a $k$-th power of a prime number, then $k=2017$ or $k\geq 2017.2018$.