Let a and b be the first term and the common difference of the A.P. respectively.

Comparing the coefficient of n2 on both sides, we obtain

Comparing the coefficient of n on both sides, we obtain

Therefore, from (1), we obtain
8 + (m – 1) 6 = 164
⇒ (m – 1) 6 = 164 – 8 = 156
⇒ m – 1 = 26
⇒ m = 27
Thus, the value of m is 27.