Even Stevens
Every day for the past days Even Stevens brings home his groceries in a plastic bag. He stores these plastic bags in a cupboard. He either puts the plastic bag into the cupboard with the rest, or else he takes an even number of the existing bags (which may either be empty or previously filled with other bags themselves) and places these into the current bag.
After days there are possible packings and if the bags are numbered (oldest), , , , they are:
- Four empty bags,
- and inside , empty,
- and inside , empty,
- and inside , empty,
- and inside , empty.
Note that , , inside is invalid because every bag must contain an even number of bags.
Define to be the number of possible packings of bags. Hence . You are also given .
Find giving your answer modulo .
伊文·“偶数”·史蒂芬斯
过去天中的每一天,伊文·“偶数”·史蒂芬斯都会将当天购买的杂货装在一个塑料袋里带回家。他把这些塑料袋存放在碗橱里,每次他要么将新的塑料袋直接单独放进去,要么先从碗橱里取出偶数个塑料袋(可以是空的,也可以是装有其它的塑料袋的)装进新塑料袋,再把新塑料袋放进去。
举个例子,假如过去了天,碗橱中有编号依次为、、、的袋子,那么这些袋子可能的状态共有种,分别是:
- 四个空袋子;
- 号和号袋子在号袋子中,号袋子是空的;
- 号和号袋子在号袋子中,号袋子是空的;
- 号和号袋子在号袋子中,号袋子是空的;
- 号和号袋子在号袋子中,号袋子是空的。
注意号、号和号袋子都在号袋子中的状态不可能出现,因为每个袋子中只能装有偶数个袋子。
记为个袋子可能的状态,因此。已知。
求并将你的答案对取余。
Be the first person to leave a comment!