On the representation of integers as sums of triangular numbers