CodeLab Academy 📞 9936 6696
← List Python · Level 4: For loops Code · 40 points ← #383 #385 →

#384. Progression: a₁=2, d=4

You get n. Print the first n terms of the arithmetic progression with first term 2 and difference 4, on one line. ### Input One integer n (1 ≤ n ≤ 30). ### Output One line.

Examples

Input
28
Output
2 6 10 14 18 22 26 30 34 38 42 46 50 54 58 62 66 70 74 78 82 86 90 94 98 102 106 110
Input
14
Output
2 6 10 14 18 22 26 30 34 38 42 46 50 54

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!