Sobes.tech
Junior — Senior

Counting bit strings without adjacent ones

livecode

Task condition

Determine the number of binary sequences of length n in which no pair of consecutive bits are both ones.