# Does the empty word count as a 'word'?

If I have DFA accepting

$\{w \in \{a,b\}^*$ s.t. on every odd position in $w$ there is a $b\}$

Would the empty word be accepted? Also, would the word $eb$ be accepted?

The empty word belongs to the language, since on all its odd positions -- all zero of them -- we find a $b$.
$eb$ does not belong to $\{a,b\}^*$, hence it does not belong to the language.
• @Leonhard You can simply write it as $b$, then. In such case, it depends on whether "positions" start counting from 1 or from 0. I'd guess from 1 (but it really depends on the convention): if so, that $b$ does belong to the language. – chi Nov 10 '17 at 22:44