How many subsets of are there which contains no two consecutive elements?
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.
Let A ( n ) denote the number of subsets of the set { 1 , 2 , … , n } , containing the element n and satisfying the given constraint of no two consecutive elements.
Similarly let B ( n ) denote the number of subsets of the set { 1 , 2 , … , n } , not containing the element n and satisfying the given constraint of no two consecutive elements.
Our objective is to find A ( 1 0 ) + B ( 1 0 ) .
Now it is easy to see that A ( n ) and B ( n ) satisfies the following two recursion equations
A ( n ) = B ( n − 1 ) and B ( n ) = A ( n − 1 ) + B ( n − 1 ) , with the initial condition A ( 1 ) = B ( 1 ) = 1 . Using the recursion, we get A ( 1 0 ) + B ( 1 0 ) = 1 4 4 .