I'm an engineer and I know probability and combinatorics reasonably well, but this problem has me stumped.
I have tried approaching the problem as a 7-bit binary string, then joining the ends to make a loop.
I've seen a solution that considers the general case of $n$ bulbs. It begins by snipping the loop into a string and computing the number of $k$-bulb failures. It sets up this recurrence, which seems incorrect to me:
${n \choose k}$ = ${n-2 \choose k-1}$ + ${n-1 \choose k}$
I know that this holds: ${n \choose k}$ = ${n-1 \choose k-1}$ + ${n-1 \choose k}$.
That's where I get stumped and can't continue.
Thank you in advance for the help.
I will offer a very simple (i.e. inelegant) solution that does not generalize well, but that is easy to understand, for the specific case of $7$ lamps, looped together.
For simplicity, I am assuming that the probability that a specific lamp is good is $p$, that the probability that a specific lamp is bad is $q = (1 - p)$, that the $p,q$ constants apply to each of the lamps, and that the probability of any lamp being good is independent of any other lamp being good.
In effect, you have the lamps seated at a round table in positions 1,2,3,4,5,6,7, where 7 is right next to 1. My approach to exploring having no consecutive bad lamps will be to examine the mutually exclusive cases of $0$ bad lamps, $1$ bad lamp, $2$ bad lamps, or $3$ bad lamps.
Note that $4$ or more bad lamps can be rejected, since this would compel two consecutive bad lamps.
I will let the partial sums be denoted as $~P_k ~: ~k \in \{0,1,2,3\}$, where $P_k$ is the partial sum under the assumption that $k$ of the lamps are bad.
Clearly, if $k=0$, you are automatically satisfied, so
$$P_0 = p^7.$$
Similarly, if $k = 1,$ you also can't have consecutive bad lamps. So,
$$P_1 = \binom{7}{1}p^6q = 7p^6q.$$
For $k=2$, things get complicated. If you select any two lamps, arbitrarily, you are looking at a probability of $p^5q^2.$ The issue is, how many of the $~\displaystyle\binom{7}{2} = 21~$ ways of selecting the two bad lamps are unsatisfying. Answer: $(7)$ :
$(1,2), (2,3), \cdots, (6,7), (7,1)$.
Therefore,
$$P_2 = \left[\binom{7}{2} - 7\right] p^5q^2 = 14p^5q^2.$$
The enumeration of $P_3$ is similar. If you have $(3)$ bad lamps, out of the $~\displaystyle \binom{7}{3} = 35~$ ways of selecting the bad lamps, the only satisfying ways of selecting them are
$(1,3,5), (1,3,6), (1,4,6), (2,4,6), (2,4,7), (2,5,7), (3,5,7).$
Therefore,
$$P_3 = 7 p^4q^3.$$
Putting this all together,
the overall probability of having satisfying lamps is
$$P_0 + P_1 + P_2 + P_3$$
$$= p^7 + 7p^6q + 14p^5q^2 + 7p^4q^3.$$
Note that I gave a very inelegant analysis that does not generalize well. This is the specific answer to the specific posted question. If you (the OP - i.e. original poster) need a more elegant approach that generalizes well, leave a comment, following my answer, and I will provide a (complicated) general approach.
Taking your posting at face value, the answer given is a good answer to provide to an Engineer, rather than to a Mathematician.