Let's have a look at this supposedly simple relation: $$ \begin{cases} f(n)=2\cdot f(n-1)+n \\ f(1)=1 \end{cases} $$
After a few expansions, for $n=5$, we get
$$ \begin{align} f(5)&=2(2(2(2f(1)+2)+3)+4)+5) \\ &=2^4f(1)+\sum_{i=0}^{3}{2^i\cdot (5-i)} \end{align} $$
So, we can generalize to $$ f(n)=2^{n-1}+\sum_{i=0}^{n-2}{2^i\cdot (n-i)} $$
After that, I still couldn't arrive at the final solution, without any sum terms.
So, using only elementary tools (i.e without generating functions, etc.), how can one solve this relation?
Looking at homogenous equation $f(n) = 2f(n-1)$, we get $f(n) = A \cdot 2^n$ for some constant $A \in \mathbb R$ is our general solution to that equation.
Now we want to find one solution to equation $f(n) = 2f(n-1) + n$.
Looking at the remaining $n$, we can guess it should be some sort of linear, so let's try $f_*(n) = an+b$, where by $f_*$ I denote special solution.
Then we have $an + b = 2a(n-1) + 2b + n$ which is equivalent to: $n(a+1) + b -2a = 0$
It must holds for any $n \in \mathbb N$, so we need $(a+1) = 0$, that means $a=-1$ and $b-2a = 0$, so $b = 2a = -2$
So our special solution is $f_*(n) = -n-2$.
Now, any solution to our system of equation is of the form : general solution + special solution.
So plugging it in, we have our solution to be $f(n) = A\cdot 2^n -n - 2$.
Plugging $f(1) = 1$, to get the value of $A$, we have:
$1 = 2A - 1 - 2$, so $A=2$
And our solution is $f(n) = 2^{n+1} - n - 2$