Since
k(k−1) is even,
nk=2k(k−1) is an integer and
cos2k(k−1)π =cos(nkπ) =(−1)nk. The parity of the triangular number
nk depends only on
kmod4: it is even for
k≡0,1(mod4) and odd for
k≡2,3(mod4). So
Ak=nk when
k≡0,1(mod4) and
Ak=−nk when
k≡2,3(mod4).
Group the
80 terms into
20 consecutive blocks of four starting at
k=19≡3(mod4). Using
nj+1−nj=j, each block with
k≡3(mod4) collapses:
Ak+Ak+1+Ak+2+Ak+3=(nk+1−nk)−(nk+3−nk+2)=k−(k+2)=−2.
The total is
20⋅(−2)=−40, so the requested absolute value is
40.