Test a sequence using every successive difference
A sequence is an AP only when all consecutive differences are equal.Read the diagram
Sequence A: 2, 5, 8, 11. Consecutive differences are 5−2=3, 8−5=3, and 11−8=3, so A is an AP with a=2 and d=3. Sequence B: 2, 5, 9, 12. Differences are 3, 4, and 3, so B is not an AP. Checking only the first pair or the endpoints is insufficient; every adjacent pair must follow one constant difference.