On behalf of http://list.seqfan.eu/pipermail/seqfan/2015-July/015138.html : My puzzle has been solved. The difference between A034791 and A034793 is that the roles of the residuum and the square are swapped. R. J. Mathar