OFFSET
1,2
EXAMPLE
1/1 = 1 is a triangular number. So a(1) = 1.
(1+2)/2 is not a triangular number. (1+3)/2 is not a triangular number. (1+4)/2 is not a triangular number. (1+5)/2 = 3 is a triangular number. So a(2) = 5.
PROG
(PARI) v=[]; n=1; while(n<5000, num=(vecsum(v)+n); if(num%(#v+1)==0&&vecsearch(vecsort(v), n)==0, for(i=1, 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=1; break))); n++)
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Oct 18 2014
STATUS
approved