Let $n$ be a positive integer, and $\frac{n(n+1)}{2}-1$ is a prime number. Find all possible values of n.
What I have so far is this: $$\frac{n(n+1)}{2}-1=2, n=2$$ Also, $n^2+n-2\over2$ can be factorized to be $(n+2)(n-1)\over2$.
What other values of $n$ are there, and how do you compute them? This question was from my Math Challenge II Number Theory packet.
If you have $p={(n+2)(n-1)\over2}$, then $2p=(n+2)(n-1)$ and so there are only two possibilities:
$n-1=2$ and $n+2=p$.
$n-1=1$ and $n+2=2p$.