


where

is the numbers of 1s, which is the same as the number of terms being summed in either

or

. It's easy to see what that number is from

; factoring a 2 from each term, you end up adding up the consecutive integers between 1 and 52, so

.
So

, and

.