Day 26: The Josephus problem continued. The authors generalize the Josephus problem even further. They ask the question: how would we find a closed form for the recurrence if the pattern had been more complex? What if the coefficients on the recurrence were something besides -1 and +1? To generalize the recurrence:
By expanding the recurrence, we can build a table of values for f(n):
If we write f(n) as: Then, it appears that: More on these equations tomorrow.
Alex, according to Gaea: Cats, gardening, furniture, economics; saying that I'm going to build things that probably I never really will; creating budgets; swimming some; napping; cats; the apocalypse and alpacas; chickens; playing board games and cards; being sweet to Gaea.
Gaea, according to Alex: knitting, cooking, swimming, camping, reading, speaking spanish, agates, succulents, ed and stacy, kip and rielley, supercar, little cat, all her friends, and picnic baskets.
No comments:
Post a Comment