Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def F(t):
- if t == 1:
- return 1
- elif t == 2:
- return 1
- elif t == 3:
- return 1
- else:
- if t > 3:
- return F(t-3) + F(t-2)
- print(F(12))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement