CodeLab Academy 📞 9936 6696
← List Python · Level 9: Functions and dicts Code · 90 points ← #893 #895 →

#894. Recurrent sequence (×5 + -3)

a₁ = 1, aₙ = aₙ₋₁ · 5 + -3. You get n. Find aₙ. ### Input One integer n (1 ≤ n ≤ 40). ### Output A number.

Examples

Input
14
Output
305175782
Input
15
Output
1525878907

💡 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!