Prove by induction that the nth triangle number is given by n(n+1)/2
base case: (1 x 2)/2 = 1 as required inductive step: assuming statement holds for n=k, the (k+1)th triangle number is given by k(k+1)/2 + (k+1) by definition=(k^2+3k+2)/2=(k+1)(k+2)/2=(k+1)((k+1)+1)/2result follows by induction