Take the set $\{a_1,a_2,a_3,a_4,a_5,a_6,a_7,a_8\}$.
We can partition according to rules.
Every member in the partition has even number of elements.
Every member in partition have to be consecutive.
For example partitions above are:
$\{(a_1,a_2),(a_3,a_4,a_5,a_6,a_7,a_8)\}$.
$\{(a_1,a_2),(a_3,a_4),(a_5,a_6,a_7,a_8)\}$.
$\{(a_1,a_2),(a_3,a_4),(a_5,a_6),(a_7,a_8)\}$.
$\{(a_1,a_2),(a_3,a_4,a_5,a_6),(a_7,a_8)\}$.
$\{(a_1,a_2,a_3,a_4,a_5,a_6),(a_7,a_8)\}$.
$\{(a_1,a_2,a_3,a_4),(a_5,a_6,a_7,a_8)\}$.
$\{(a_1,a_2,a_3,a_4,a_5,a_6,a_7,a_8)\}$.
Essentially asking if we are given even number how many ways can write as sum of evens?
Here $2+6=2+2+4=2+2+2+2=2+4+2=6+2=4+2+2=4+4=8$.
In the example, imagine that there is a wall between $a_2$ and $a_3$, another between $a_4$ and $a_5$ and a third between $a_6$ and $a_7.$ Then you're just selecting which of the three walls to raise, so there are $2^3=8$ possibilities.
In you examples, $1$ corresponds to raising the first wall only, $3$ to raising all the walls, and $7$ to raising none of the walls. You have overlooked the partition $$(a_1,a_2,a_3,a_4)(a_5,a_6)(a_7,a_8.)$$