Assuming your arithmetic progression is since you arbitrarily wrote a d for some reason, we can set these two expressions equal to each other:
If you are trying to solve for , it is the solution to this quadratic equation in :
You can use the quadratic formula. You get a mess, but I suppose that could be the solution for ...