find missing term in arithmetic progression