human
Tetrahedral Numbers | Python3 Program to find the nth tetrahedral number.
Function to find Tetrahedral Number.
Driver Code"
Solution in Python:
assistant
#Here is code to tetrahedral Numbers and the other steps required.
 def tetrahedralNumber ( n ) :
	return ( n * ( n + 1 ) * ( n + 2 ) ) / 6
def tetrahedralNumber ( n ) :
	return ( n * ( n + 1 ) * ( n + 2 ) ) / 6
n = 5
print ( tetrahedralNumber ( n ) )