human
Print the first N terms of the series 6 , 28 , 66 , 120 , 190 , 276 , ... | Function to print the series.
Initialise the value of k with 2.
Iterate from 1 to n.
Print each number.
Increment the value of K by 2 for next number.
Given number.
Function Call"
Solution in Python:
 ... Give me a code to print the first N terms of the series 6 , 28 , 66 , 120 , 190 , 276 ,?
assistant
#Here is code to print the first N terms of the series 6 , 28 , 66 , 120 , 190 , 276 , .
 def PrintSeries ( n ) :
	k = 2
	for i in range ( 0 , n ) :
		print ( k * ( 2 * k - 1 ) , end = ' ▁ ' )
		k = k + 2
n = 12
PrintSeries ( n )