# Program to print series 0,2,8,14,24,34 ...N 
 n=int(input("Enter the range of number(Limit):"))i=1pr=0while i<=n:    if(i%2==0):        pr=pow(i, 2) - 2        print(pr,end=" ")    else:        pr = pow(i, 2) - 1        print(pr, end=" ")    i+=1