A249264 Sequence of distinct least nonnegative numbers such that the average of the first n terms is a triangular number.
0, 2, 1, 9, 3, 21, 6, 38, 10, 60, 15, 87, 112, 28, 148, 36, 189, 45, 235, 55, 286, 66, 342, 78, 403, 91, 469, 105, 540, 120, 616, 136, 697, 153, 783, 171, 874, 190, 970, 210, 1071, 231, 1177, 253, 1288, 276, 1404, 300, 1525, 325, 1651, 351, 1782, 378, 1918, 406, 2059, 435, 2205, 465
Offset: 1
Keywords
Programs
-
PARI
v=[]; n=0; while(n<5000, num=(vecsum(v)+n); if(num%(#v+1)==0&&vecsearch(vecsort(v),n)==0,for(i=0,n,if(i*(i+1)/2>(num/(#v+1)), break); if(i*(i+1)/2==(num/(#v+1)), print1(n, ", "); v=concat(v, n); n=0; break))); n++)
Formula
Empirical g.f.: x^2*(66*x^16-66*x^15-153*x^14+153*x^13+91*x^12-91*x^11-3*x^2-x-2) / ((x-1)^3*(x+1)^3). - Colin Barker, Oct 24 2014
Comments