Problem

Source: 7th RMM 2015, Problem 1

Tags: number theory, relatively prime, RMM, RMM 2015



Does there exist an infinite sequence of positive integers $a_1, a_2, a_3, . . .$ such that $a_m$ and $a_n$ are coprime if and only if $|m - n| = 1$?