# Finding common value of two sequencees

Is it possible to find the first common value of these two sequences?

$m^2 + 928m + 687: 1616, 2547, 3480, 4415, 5352, \dots$

and

$n^2 + 54n + 729: 784, 841, 900, 961, 1024, \dots$?

• How about $m=33$, $n=153$? Both lead to $32400$ (After that, it takes a little while) – Hagen von Eitzen Apr 15 '16 at 14:06

$$m^2+928m+687 = n^2+54n+729 \\ (m+464)^2-(n+27)^2 = 464^2-687 \\ (m+n+491)(m-n+437) = 214609 = 317*677 = 1*214609\\ \cases{m=33, n=153 \\ m=106841, n=107277}$$
• The second $m$ should be 106841, I suppose – Hagen von Eitzen Apr 15 '16 at 14:09
• If there would be one, you could use it to factorize $214609$ instead. So, were you to find a way to solve such general task significantly faster than by factorization, it would be a major breakthrough in cryptography. Possible, but unlikely. – Abstraction Apr 15 '16 at 14:29