Balancing permuted copies of multigraphs and integer matrices

Given a square matrix A over the integers, we consider the Z-module MA generated by the set of all matrices that are permutation-similar to A. Motivated by analogous problems on signed graph decompositions and block designs, we are interested in the completely symmetric matrices aI + bJ belonging to MA. We give a relatively fast method to compute a generator for such matrices, avoiding the need for a very large canonical form over Z. We consider several special cases in detail. In particular, the problem for symmetric matrices answers a question of Cameron and Cioabǎ on determining the eventual period for integers λ such that the λ-fold complete graph λKn has an edge-decomposition into a given (multi)graph.