Step 1: Rewrite one term:
The tangent subtraction rule says $\tan(A - B) = \frac{\tan A - \tan B}{1 + \tan A\tan B}$. With $\tan A = a_{k+1}$ and $\tan B = a_k$, the fraction is $\frac{d}{1 + a_ka_{k+1}}$.
Step 2: Telescope:
Every middle term cancels, leaving $\tan^{-1}a_n - \tan^{-1}a_1$.
Step 3: Take the tangent:
$\tan$ of that difference is $\frac{a_n - a_1}{1 + a_1a_n}$.
Step 4: Test with numbers:
Take $a = 1, 2, 3$, $d = 1$: terms are $\tan^{-1}\frac13 + \tan^{-1}\frac17$, with tangent $\frac{1/3+1/7}{1-1/21} = \frac{10/21}{20/21} = \frac12$. Formula: $\frac{3-1}{1+3} = \frac12$. It matches.
Final Answer:
The expression equals $(a_n - a_1)/(1 + a_1a_n)$, option (C).
\[ \boxed{\frac{a_n-a_1}{1+a_1a_n}} \]