Computing a special case of a question by another user, I have noticed that apparently the OEIS A202349 sequence can be expressed as:
$$a(n)=\sum_{k=0}^{n}{\binom{n}{k}(2^k \bmod 7)} \tag{1}$$
This formula is not at OEIS, while there are there a recurrence for $n>2$:
$$a(n) = 3a(n-1) - 3a(n-2) + 2a(n-3) \tag{2}$$
and a generating function:
$$\frac{x(1 + 3x^2) }{ (1 - 2x)(1 - x + x^2)}. \tag{3}$$
The factor $2^k \bmod 7$, starting from $k=0$, is just $1,2,4,1,2,4,1,2,4,\ldots$
Any hint for proving that $(1)$ satisfies $(2)$ and/or has generating function $(3)$?