simplyfied the calculation for the next triangular number