human
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:
 Give 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?
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 ) :
	n -= 1
	sum = 0
	sum += ( n * ( n + 1 ) ) / 2
	sum += ( n * ( n + 1 ) * ( 2 * n + 1 ) ) / 6
	return int ( sum )
n = 3
print ( findSum ( n ) )