E1 Fresco Prob2 Correct

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#!

/bin/python3

import math
import os
import random
import re
import sys

#
# Complete the 'Magic_const' function below.
#
#
#
# The function accepts INTEGER n1 as parameter.
#

def generator_Magic(n1):
# Write your code here

for i in range(3,n1+1):

yield (i*(i**2 +1))/2

if __name__ == '__main__':

You might also like