I'm trying to figure out a general formula for any term $x_{n}$ in the sequence
$(x_n)=(0,1,0,1,1,0,1,1,1,0,1,1,1,1,0...)$
where the $k^{th}$ zero is followed by $k+1$ ones.
All I've been able to figure out is that the kth zero's position in the sequence can be found using
$0_k = x_\frac{k(k+1)}{2}$