Identify triangular numbers (#826)