How many numbers in binary format that have 32 bits and haven't got any block of 111 and 101 in their form?
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.
I got a recursion of a n = 2 ( a n − 3 + a n − 4 + a n − 5 ) + a n − 6 . Not sure if there's a more direct way to do it.