An arithmetic sequence of positive integers has $n\ge3$ terms, initial term $a$, and common difference $d>1$. Carl wrote down all the terms in this sequence correctly except for one term, which was off by $1$. The sum of the terms he wrote down was $222$. What is $a+d+n$? $\textbf{(A)}\ 24 \qquad \textbf{(B)}\ 20 \qquad \textbf{(C)}\ 22 \qquad \textbf{(D)}\ 28 \qquad \textbf{(E)}\ 26$
The true sum is $221$ or $223$, and equals $\frac{n(2a+(n-1)d)}2$, so $n(2a+(n-1)d)=442$ or $446$.
$446=2\cdot223$: $n\ge3$ forces $n\in\{223,446\}$, and then $2a+(n-1)d\le2$, impossible. $442=2\cdot13\cdot17$: $n=13$ gives $a+6d=17$, so $d=2$, $a=5$; $n=17$ gives $a+8d=13$, so $d=1$, not allowed; larger $n$ fail.
An arithmetic sequence of positive integers has $n\ge3$ terms, first term $a$, and common difference $d>1$. Carl copied all terms correctly except one, which was off by $1$, and the sum of what he wrote was $168$. What is $a+d+n$?