human
Split N ^ 2 numbers into N groups of equal sum | Function to print N groups of equal sum.
No . of Groups.
n / 2 pairs.
Driver code"
Solution in Python:
assistant
#Here is code to split N ^ 2 numbers into N groups of equal sum and the other steps required.
 def printGroups ( n ) :
	x = 1
	y = n * n
	for i in range ( 1 , n + 1 ) :
		for j in range ( 1 , n // 2 + 1 ) :
			print ( " { " , x , " , " , y , " } " , end = " ▁ " )
			x += 1
			y -= 1
		print ( )
if __name__ == " _ _ main _ _ " :
	n = 4
	printGroups ( n )