Question

4 a) Find a recurrence relation for an, the number of sequences of 1's and 2's and 4's whose sum is n and with no 21 subsequence. b) Find a recurrence relation for an, the number of sequen...

4 a) Find a recurrence relation for an, the number of sequences of 1's and 2's and 4's whose sum is n and with no 21 subsequence.
b) Find a recurrence relation for an, the number of sequences of 1's and 2's and 4's whose sum is n and with no 44 subsequence.

Answer is a) an = an-1+ an-4 + an-2 - an-3, b) an = an-1 + an-2 + an-5 + an-6, please explain how to get it, thanks.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

tRA, Prawned cud.ch An.rk crith 2- hena, e han

Add a comment
Know the answer?
Add Answer to:
4 a) Find a recurrence relation for an, the number of sequences of 1's and 2's and 4's whose sum is n and with no 21 subsequence. b) Find a recurrence relation for an, the number of sequen...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT