refract and add triangular number