There are N pieces of fragments, and we’re going to select some of them to form a map. Some fragments can be selected into the map directly (named 1-level fragments), while each of the rest follows
exactly one fragment as its prior fragment. If B follows A and A is an i-level fragment, then B is defined as an (i + 1) - level fragment, and B can be selected only if A has been selected before. Besides, a fragment is followed by at most one other fragment.
Each fragment is assigned with a reliability. The reliability of the whole map is sum up by two parts:
1.The sum of reliabilities of all selected fragments;
2.If there are x
i i-level fragments in total and we select y
i(y
i > 1) fragments among them to form the map, the reliability would increase by
,where S
i denotes the sum of reliabilities of selected fragments in level i.
Please figure out the expectation of reliability of the map under the condition that all valid selections are equiprobable.
At least one fragment should be selected.