Solving for the first terms