Counting the Number of Elements of a Set.

Define sets A i = { i , i + 1 } A_i =\{i, i+1\} and B i = { A 1 , A 2 , . . . . . , A i } . B_i=\{A_1, A_2,.....,A_i\}.

F i F_i is the set of all possible sets that can be formed by taking union of one or more elements of B i B_i . For example, F 2 = { A 1 , A 2 , A 1 A 2 } . F_2 =\{A_1, A_2, A_1\cup A_2\}.

Find the number of distinct elements of F 15 F_{15} .


The answer is 5841.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Patrick Corn
Oct 1, 2014

Let f n = F n f_n = |F_n| . The number of elements of F n + 1 F_{n+1} that contain n + 2 n+2 is f n + 1 f n f_{n+1}-f_n . There are two ways this can be done: either we add n + 2 n+2 to an element of F n F_n containing n + 1 n+1 , or we add { n + 1 , n + 2 } \{ n+1, n+2 \} to an element of F n 2 F_{n-2} or the empty set.

This gives the recurrence f n + 1 f n = ( f n f n 1 ) + ( f n 2 + 1 ) f_{n+1}-f_n = (f_n-f_{n-1}) + (f_{n-2}+1) , which simplifies to f n + 1 = 2 f n f n 1 + f n 2 + 1. f_{n+1} = 2f_n - f_{n-1} + f_{n-2} + 1.

Starting with f 0 = 0 f_0 = 0 , f 1 = 1 f_1 = 1 , f 2 = 3 f_2 = 3 and iterating gives f 15 = 5841 f_{15} = \fbox{5841} .

You can see http://oeis.org/A077855 for more information.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...