If a sequence is such that the next term is given by $a_n*a +b$, what is the general formula of the given sequence?
e.g.: $-$ for $a=4,\;b=6$, the sequence is:
$1,\quad1*4+6=10,\quad10*4+6=46,\quad46*4 +6=190,\;\dots$
What would the formula for the general term be?
(I'm not necessarily asking specifically for this example but rather for a general sequence with the next term defined by $a_n*a +b$).
If the first element of the sequence is $s_0$, when you compute the first terms of your sequence it won't be difficult to guess that the $n$-th term of that is $$s(n)=s_0a^n+b\left(\sum_{i=0}^{n-1}a^i\right)$$ then go by induction.