Numbers x such that there is a primitive triangle whose sides are x, x-2, and 8.
5, 17, 125, 977, 7685, 60497, 476285, 3749777, 29521925, 232425617, 1829883005, 14406638417, 113423224325, 892979156177, 7030410025085, 55350301044497, 435771998330885, 3430825685602577, 27010833486489725, 212655842206315217, 1674235904164032005
1
The sequence of primitive triangles are given in S000996. Note that the first triangle has zero area.
T. D. Noe, Plot of 100 terms
T. D. Noe, Table of 100 terms
Formula: s(n) = 9*s(n-1) - 9*s(n-2) + s(n-3), with initial terms 5, 17, 125.
(Mma) triArea[a_Integer, b_Integer, c_Integer] := Sqrt[(a + b + c) (-a + b + c) (a - b + c) (a + b - c)]/4; s8 = Select[Range[1000000], IntegerQ[triArea[#1, #1 - 2, 8]] &]; r8 = FindLinearRecurrence[s8]; t8 = LinearRecurrence[r8, Take[s8, Length[r8]], 30]
nonn
T. D. Noe, Apr 24 2017