human
Write me a code to sum of matrix in which each element is absolute difference of its row and column numbers and the other steps required given the following:
Sum of matrix in which each element is absolute difference of its row and column numbers | Return the sum of matrix in which each element is absolute difference of its corresponding row and column number row.
Driver code"
Solution in Python:
assistant
#Here is code to sum of matrix in which each element is absolute difference of its row and column numbers and the other steps required.
 def findSum ( n ) :
	sum = 0
	for i in range ( n ) :
		sum += i * ( n - i )
	return 2 * sum
n = 3
print ( findSum ( n ) )