Surprisingly, at the end of the wikipedia article about Olber paradox there is a integral which describes the summation of all stars and takes the distance into account, and according to what we know currently about the matter distribution in the universe, the integral is infinite :)