find the number of terms in an arithmetic progression with the first term 2 and the last term being 62 , given that common difference is 2 .
the n th term = a + ( n - 1 ) * d 62 = 2 + ( n - 1 ) * 2 , 62 – 2 = ( n - 1 ) * 2 , n = 60 / 2 + 1 = 31 . answer : a
add(divide(subtract(62, 2), 2), const_1)