Excel in math, science, and engineering
Consider a number \(3^n\) where \(n\) is a positive integer.
If \(n=2016\), the last digit of \(3^n\) is \(a\).
If \(n=9018\), the last digit of \(3^n\) is \(b\).
What is \(a+b\)?