The triangular number Tn solves the "handshake problem" of counting the number of handshakes if each person in a room with n + 1 people shakes hands once with each person. In other words, the solution to the handshake problem of n people is Tn−1.[4] The function T is the additive analog of the factorial function, which is the products of integers from 1 to n.