I have a series: $$3, 2, 4, 7, 11, 16, 26, 39, 63, 94, 152, 227, 367, 548, 886, 1323, 2139, 3194, ...$$ which represents values of $m,n$ in Euclid's formula to generate Pythagorean triples where $A-B=\pm17.$
I have found a number of series on MSE and oeis.org/A001333 or oeis.org/A266504
but not this one.
I also tried WolframAlpha and it properly continued the series as:
$$3, 2, 4, 7, 11, 16, 26, 39, 63, 94, 152, 227, 367, 548, 886, 1323, 2139, 3194, 5164, 7711, 12467, 18616, 30098, 44943, 72663, 108502, 175424, ...$$
but the formula it gave me: $$G_n(a_n)(z) = (-3 z^3 + 2 z^2 - 2 z - 3)/(z^4 + 2 z^2 - 1)$$ generates $$-3 -1, -0.734693878, -0.595818815, -0.50148368, -0.432333577, -0.379503603, -0.337911437, -0.304373698, -0.276791842$$ instead.
Since WolframAlpha correctly extend the series from what I entered, it seems that the formula it offered should work so I must be interpreting something incorrectly. Can anyone point me in the right direction for this series or tell me what I'm doing wrong with Wolfram?
WolframAlpha extrapolated correctly for $A-B=\pm17$ when I included the first elements but not when I omitted the first two.
Once we find the fundamental solutions $m=7,n=2$, giving the $45,28,53$ triangle and $m=4,n=3$ giving the $7,24,25$ triangle we can note that you want $(m^2-n^2)-2mn=\pm 17$, which we can rewrite as $(m-n)^2-2n^2=\pm 17$ We can then use the Brahmagupta identity to take one $m,n$ pair and say the next pair is $(2m+n,m)$. This recurrence gives the even terms and odd terms in your sequence separately.