Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def f(n):
- if n == 1:
- return 1
- if n > 1:
- return 5 * f(n - 1) + 3 * n
- print(f(4))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement