So I have the following problem: given a set of 10 0s or 1s, find the total number of combinations that have at least one instance of 11 so for instance:
1100000000, 1111111111, and 1101001101
all count, and:
1010010001, 0000000000, and 1010101010
all don't count.
I have tried to look up some information on this, but every source I have found assumed that there was a fixed set of 1s and 0s.
I brute forced the answer with a program, and found it to be 880, but I cant find a way to get this number through a formula that would work for say a set of any length.
I had found a solution at one point using a recursive function, but forgot what it was, and it took me over an hour to find, and seeing as I was expected to solve this problem in just 5 minutes, I don't think it was the intended solution.

You can count the words where a 1 is always followed by a 0 (counting separately the cases where the last digit is 0 or 1), and subtract that from the number of words. To count the words with $k$ ones followed by 0s, ending in 0, think of a set of $10-k$ zeros, of which you choose $k$ zeros which are preceded by ones - there are $\binom{10-k}{k}$ of these. For the words with a 1 at the end, think of a set of $9-k$ zeros, $k$ of which are preceded by a 1 (so there are $k+1$ 1s in total). So in total, there are \begin{align*} \sum_{k=0}^5 \binom{10-k}{k} + \sum_{k=0}^4 \binom{9-k}{k}=144 \end{align*} words with no consecutive 1s, and $1024-144=880$ words which do have consecutive 1s.
(I think your program might be wrong, I used this MATLAB code:
num=0;for i = 1 : 2 ^ 10,if ~contains(dec2bin(i),'11'), num=num+1;end,end;1024-num).