A176542 Numbers n such that there are only a finite nonzero number of sets of n consecutive triangular numbers that sum to a square.
32, 50, 98, 128, 200, 242, 338, 392, 512, 578, 722, 800, 968, 1058, 1250, 1352, 1568, 1682, 1922, 2048, 2312, 2450, 2738, 2888, 3200, 3362, 3698, 3872, 4232, 4418, 4802, 5000, 5408, 5618, 6050, 6272, 6728, 6962, 7442, 7688, 8192, 8450, 8978, 9248, 9800
Offset: 1
Keywords
Examples
32 is in this sequence because there is only one set of 32 consecutive triangular numbers that sum to a square (namely, A000217(26) thru A000217(57), which sum to 29584 = 172^2). 3 is NOT in this sequence, because there are infinitely many sets of 3 consecutive triangular numbers that sum to a square (cf. A165517). 4 is NOT in this sequence, because there are infinitely many sets of 4 consecutive triangular numbers that sum to a square (cf. A202391). 5 is NOT in this sequence, because there are NO sets of 5 consecutive triangular numbers that sum to a square. 11 is NOT in this sequence, since there are infinitely many sets of 11 consecutive triangular numbers that sum to a square (cf. A116476).
Formula
Conjectures from Colin Barker, Sep 24 2015: (Start)
a(n) = (9*n^2+24*n+16)/2 for n even.
a(n) = (9*n^2+30*n+25)/2 for n odd.
a(n) = a(n-1)+2*a(n-2)-2*a(n-3)-a(n-4)+a(n-5) for n>5.
G.f.: -2*x*(4*x^4-3*x^3-8*x^2+9*x+16) / ((x-1)^3*(x+1)^2).
(End)
Extensions
Terms a(6) onward from Max Alekseyev, May 10 2010
Comments