a(5) = 26 because there are 31 nonempty subsets of {1,2,3,4,5} but 5 of these have successive elements that differ by 3 or more: {1,4}, {1,5}, {2,5}, {1,2,5}, {1,4,5}. -
Geoffrey Critzer, Feb 17 2012
There are a(5) = 26 bit strings with the pattern 00 and without the pattern 011 of length 5+1:
000000, 000001, 000010, 000100, 000101, 001000,
001001, 001010, 010000, 010001, 010010, 010100,
100000, 100001, 100010, 100100, 100101, 101000, 101001,
110000, 110001, 110010, 110100, 111000, 111001, 111100.
(End)