Problem

Source: Romania IMO TST 1991 p2

Tags: recurrence relation, Sequence, coprime, number theory



The sequence ($a_n$) is defined by $a_1 = a_2 = 1$ and $a_{n+2 }= a_{n+1} +a_n +k$, where $k$ is a positive integer. Find the least $k$ for which $a_{1991}$ and $1991$ are not coprime.