# Are $(2,28)$ and $(5,3207)$ the only solutions $(m,n)\in\mathbb{N}^2$?

I noticed something as I was playing around with prime numbers. By denoting $p_i$ the $i^{\text{th}}$ prime number, I discovered the following:

\begin{align}\prod_{i=1}^2\left(p_i^{ \ 2}+i\right)&= 28^2-27^2 \\ \prod_{i=1}^5\left(p_i^{ \ 2}+i\right)&=3207^2-27^2.\end{align}

Given the general equation

$$\prod_{i=1}^m\left(p_i^{ \ 2}+i\right)=n^2-27^2\tag*{\big(\left(m,n\right)\in\mathbb{N}^2\big)}$$

I have tested for $5< m\leqslant 32$ and it appears that for $m > 5$, there does not exist such $n$. I know that $n^2-27^2=(n+27)(n-27)$, but this does not help me make much progress.

Is this true? Can it be verified? Thus far, it remains a conjecture that the only solutions $(m,n)$ are $(2,28)$ and $(5,3207)$.

Source of Testing:

$$\text{Alpertron - Integer Factorization Calculator.}$$

• Verified for $m \leq 50000$.Though I am not sure if there is something special about this, since the squares are simply more and more rare when we go to bigger numbers, so it is just expected, kind of... – Sil May 20 '18 at 8:02
• So, is it $(p_i^2+1)$ or $(p_i^2+i)$ in the general equation? – rtybase May 20 '18 at 12:18
• I can approve that upto $m=10^4$, no further solution exists. I am currently running the verification upto $m=10^5$ – Peter May 20 '18 at 16:48
• @Sil An even "easier" question : Are there infinite many primes of the form $n^2+1$, where $n$ is an integer ? This is an open problem! – Peter May 20 '18 at 16:50
• Don't worry, it was with $i$ :) @Peter Yea, I am afraid number theory is full of those :S – Sil May 20 '18 at 16:57