human
Give me a code to print N numbers such that their sum is a Perfect Cube and the other steps required given the following:
Print N numbers such that their sum is a Perfect Cube | Function to find the N numbers such that their sum is a perfect cube.
Loop to find the Ith term of the Centered Hexagonal number.
Driver Code.
Function Call"
How can the above be solved in Python?
assistant
#Here is code to print N numbers such that their sum is a Perfect Cube and the other steps required.
 def findNumbers ( n ) :
	i = 1
	while ( i <= n ) :
		print ( ( 3 * i * ( i - 1 ) + 1 ) , end = " ▁ " )
		i += 1
n = 4
findNumbers ( n )