The 6th problem is: The difference between the sum squared and the squared sum of proceeding numbers. We can solve this purely analytically:
x=i=1∑ni2−(i=1∑ni)2
We now apply the Faulhaber formulars
x=3n3+2n2+6n−(2n2+n)2
=−6n3−4n4+4n2+6n
=4n2⋅(1−n2)+6n⋅(1−n2)
=12n⋅(3n+2)⋅(1−n2)