After you graduate you accept a job that promises a starting salary of $40,000$ and a raise at the end of each year equal to $5\%$ of your current salary plus $1000$. For example, your raise at the end of the first year is $3000$. Let $S_n$ be your salary after $n$ years, so that $S_0 = 40,000$.
A- Find a recurrence relation.
B- Determine how much you will be making after $2$ years, after $5$ years, after $10$ years.
I did part A. I don't know if I did it correctly, so it's $S_{n+1} = S_n \cdot 1.05+1000$ with $S_0=40,000$.
$\newcommand{\bbx}[1]{\,\bbox[8px,border:1px groove navy]{\displaystyle{#1}}\,} \newcommand{\braces}[1]{\left\lbrace\,{#1}\,\right\rbrace} \newcommand{\bracks}[1]{\left\lbrack\,{#1}\,\right\rbrack} \newcommand{\dd}{\mathrm{d}} \newcommand{\ds}[1]{\displaystyle{#1}} \newcommand{\expo}[1]{\,\mathrm{e}^{#1}\,} \newcommand{\ic}{\mathrm{i}} \newcommand{\mc}[1]{\mathcal{#1}} \newcommand{\mrm}[1]{\mathrm{#1}} \newcommand{\pars}[1]{\left(\,{#1}\,\right)} \newcommand{\partiald}[3][]{\frac{\partial^{#1} #2}{\partial #3^{#1}}} \newcommand{\root}[2][]{\,\sqrt[#1]{\,{#2}\,}\,} \newcommand{\totald}[3][]{\frac{\mathrm{d}^{#1} #2}{\mathrm{d} #3^{#1}}} \newcommand{\verts}[1]{\left\vert\,{#1}\,\right\vert}$ \begin{align} &S_{n} = 1.05\,S_{n - 1} + 1000 \implies S_{n} + 20000 = 1.05\pars{S_{n - 1} + 20000} \\[5mm] & \implies \bbx{\ds{S_{n} = 1.05^{\,n}\pars{S_{0} + 20000} - 20000} = 20000\pars{3 \times 1.05^{\,n} - 1}} \end{align}