Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #https://inf-ege.sdamgia.ru/problem?id=5057
- def f(n):
- if n == 1:
- return 3
- if n == 2:
- return 3
- return 5 * f(n - 1) - 4 * f(n - 2)
- print(f(15))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement