I need to know if some system of congruences of form:
$$x \equiv a_1 \pmod{b_1}$$ $$\ldots$$ $$x \equiv a_n \pmod{b_n}$$ has a solution and how big this solution could be. I can't assume that b are relatively prime so I can't use Chinese remainder theorem. Any ideas?
Try to find partial solutions $x_1, ..., x_n$ such that $x_i \equiv \delta_{i,j} \pmod{b_j}$ for all $i,j \in [1,n]$ (where $\delta$ is the Kronecker delta function).
You can do so by trying integers in $\text{lcm}_{j\ne i}(a_j)\Bbb Z$
You'll find that $x = \sum_{i=1}^n a_i x_i$ is solution to your system.