Suppose $n$ and $r$ are nonnegative integers such that no number of the form $n^2+r-k(k+1) \text{ }(k\in\mathbb{N})$ equals to $-1$ or a positive composite number. Show that $4n^2+4r+1$ is $1$, $9$, or prime.
Source:
Tags: pen, number theory
Suppose $n$ and $r$ are nonnegative integers such that no number of the form $n^2+r-k(k+1) \text{ }(k\in\mathbb{N})$ equals to $-1$ or a positive composite number. Show that $4n^2+4r+1$ is $1$, $9$, or prime.