The number of ways in which three distinct number in AP can be selected from the set {1, 2, 3 . . . .24} is equal to