human
Write me a code to number of ways to color boundary of each block of M * N table and the other steps required given the following:
Number of ways to color boundary of each block of M * N table | Function to compute all way to fill the boundary of all sides of the unit square.
Count possible ways to fill all upper and left side of the rectangle M * N.
Count possible ways to fill all side of the all squares unit size.
Number of rows.
Number of columns"
Solution in Python:
assistant
#Here is code to number of ways to color boundary of each block of M * N table and the other steps required.
 def CountWays ( N , M ) :
	count = 1
	count = pow ( 3 , M + N )
	count *= pow ( 2 , M * N ) ;
	return count
N = 3
M = 2
print ( CountWays ( N , M ) )