We need to evaluate 12−22+32−42+⋯+(2021)2−(2022)2+(2023)2.
Pairing consecutive terms and using the identity k2−(k+1)2=−(2k+1), we write the sum as:
(12−22)+(32−42)+⋯+(20212−20222)+20232
Each pair yields k2−(k+1)2=−(2k+1) for k=1,3,5,…,2021, so the values are −3,−7,−11,…,−4043 and there are 1011 such pairs.
Hence the sum of these pairs is −(3+7+11+⋯+4043), which is an arithmetic progression with first term 3, last term 4043, and 1011 terms, giving
=−21011(3+4043)=−1011×2023
Adding the final term, we get
S=−1011×2023+20232=2023(2023−1011)=2023×1012
Since S=1012⋅m2⋅n, it follows that m2n=2023. Factoring 2023 gives 2023=7×172, and with gcd(m,n)=1 we have m=17 and n=7.
Therefore,
m2−n2=289−49=240
The correct answer is Option A: 240.