1990 AHSME Problems/Problem 30

Let $R_n=\frac{1}{2}(a^n+b^n)$ for each non-negative integer $n$ where $a=3+2\sqrt{2}$ and $b=3-2\sqrt{2}$. The value of $R_{12345}$ is an integer. What is its units digit? The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions. AMC logo.png