Salaries, Loans and Difference Equations

In the last issue of Parabola, the question was posed as to whether it is better to work for Company A (with an annual rise of $\$2,000$ or Company B (with only a six-monthly rise of $\$500$).