Add method for iterating triangular numbers