Write an=a+(n−1)d, where a>0. Each pair contributes a2j−12−a2j2=−d(2a+(4j−3)d). Summing gives Ak=−kd(2a+(2k−1)d).
The given values imply d(2a+5d)=51 and d(2a+9d)=87. Subtracting yields 4d2=36, so d2=9. Substitution then gives 2ad=6, or ad=3.
Since a>0 and ad>0, d=3 and a=1. This satisfies the remaining condition: 12+42+72=66, and all the terms are positive.
Thus a17=1+16(3)=49 and A7=−7(3)(2+13(3))=−861. Therefore a17−A7=49+861=910.