In connection with determining the number of ways of arranging $n$ copies of each of the $n$ integers 1 upto $n$ in an $n$ by $n$ pandiagonal magic square, i.e. such that the sum of the integers in each row, column and 'broken' diagonal is the same, the following sub-problem arises.
Given two integers $a$ and $b$, whose product is $n$,how many ways are there to divide the $n$ integers 1 upto $n$ into $a$ groups of $b$ integers in such a way that the sum of the $b$ integers in each of the $a$ groups is the same? Obviously: if $n$ is prime, then $a=1$ or $b=1$; if $a=1$, then $b=n$ and there is only one way; if $b=1$, then $a=n$ and there are no ways.
Also if $a=2$, then the problem is equivalent to the number of ways of dividing a $b$ by $b$ chess board into two equal areas using a 'diagonal' line descending from the top left corner to the bottom right corner, following the edges of the chess squares, and proceeding either to the right or down (never to the left or up). The answer for this special case is known.
I have not yet found any mathematician who knows whether or not there is a general solution. Having an answer would enable me to extend a proof for a sub set of pandiagonal squares, those that are most-perfect. See Ollerenshaw and Brée, Most-perfect pandiagonal magic squares, or a review of same at journals.cambridge.org/article_S0013091500020381.

