For some problems, it's pretty simple to deduce what a formula should look like after you enumerate a few examples, but for some problems, it's not so clear. For these less clear examples, is there some procedure I can follow to find the formula?
For example, just now, I was working on the problem:
Find the expected number of tosses it takes to get $k$ 6s in a row.
The recursive formula is
$$ E[N_k ] = 6(E[N_{k - 1}] + 1) $$
where $N_k$ is the number of tosses it takes to get $k$ 6s in a row. The initial condition is $E[N_1] = 6$ because $N_1$ is a geometric random variable with $1/6$ probability of success.
Then I enumerated a few cases:
$$ E[N_1] = 6 \\ E[N_2] = 42 \\ E[N_3] = 258 \\ E[N_4] = 1554 $$
It's not obvious to me what the formula should be. But I think it should look something like $$ E[N_k] = 6^k + (k - 1) * \text{something} + \text{maybe other terms} $$
But I don't know what this "something" and "maybe other terms" should be. If I sit here long enough I could probably figure it out, but is there some kind of general procedure that I can apply to a wide array of problems?
One good way is to try to convert this to a more standard linear recursion.
Letting $$a_n=6(a_{n-1}+1)=6a_{n-1}+6$$
We rewrite this as $$6=a_n-6a_{n-1}=a_{n-1}-6a_{n-2}$$
Whence $$a_n=6a_{n-1}+a_{n-1}-6a_{n-2}=7a_{n-1}-6a_{n-2}$$
and this can now be solved by standard means, yielding $$\boxed{a_n=\frac 65\times \left(6^n-1\right)}$$