I have the scenario where I start at $2$ and then multiply the previous by $3$ and then subtract by $2$. For example $$ 2, 4, 10, 28, 82, \dots $$
I tried to look at the pattern of how much they are increasing by: $$ 2, 6, 18, 54, \dots $$ which multiplied by $3$, but I don't know how that translate to a function. When writing it out, I get $2 \cdot 3^{\mathrm{term}-1}$, an amount that I'm not sure how to express. Just $2 \cdot 3^{\mathrm{term}-1} - 2 \cdot 3^{\mathrm{term}-2} - \cdots$ until you subtract $2 \cdot 3^0$.
Denote the $n$-th term by $a_n$ with $n\geq 0$, we have
$a_0=2$,
$a_1=3\times 2-2=2\times (3-1)$,
$a_2=3\times2\times(3-1)-2=2\times(3^2-3-1)$,
...
$a_n=2\times(3^n-\sum_{k=0}^{n-1} 3^{k})$,
where, as the sum of a geometric series, $\sum_{k=0}^{n-1} 3^{k}=\frac{3^n-1}{2}$. Thus finally,
$a_n=3 a_{n-1}-2=2\times(3^n-\frac{3^n-1}{2})=3^n+1$.
Denote the difference between two adjacent terms by $d_n$ for $n\geq 1$, we have
$d_n=a_n-a_{n-1}=3^n-3^{n-1}=3^{n-1}\times(3-1)= 2\times3^{n-1}=3 d_{n-1}$.