I have the following recursion
$$a_n = \frac{1}{4}a_{n-1}+\frac{1}{4}(\frac{2}{3})^{n-1}$$
I've tried first to solve the homogeneous equation (shifting by one)
$$(E - \frac{1}{4})a_n = 0$$
where $Ea_n = a_{n+1}$ is the shift operator. The only solution to this equation is $E=\frac{1}{4}$. Now I thought that for a non-homogeneous equation, where the term $d(n)$ does not depend on the underlying recursion has the form $d(n) = k\mu^n$ and $\mu$ is not a root of the homogeneous equation, the solution is given by
$$a_n = \frac{k\mu^n}{\Phi(\mu)}$$
where $\Phi$ is the characteristic equation of the homogeneous one. In my case $d(n) = \frac{1}{4}\frac{2}{3}^{n}$, so $k=\frac{1}{4}$ and $\mu = \frac{2}{3}$. Thus the solution should be given by
$$a_n = \frac{\frac{1}{4}\frac{2}{3}^n}{\frac{2}{3}-\frac{1}{4}}=\frac{\frac{1}{4}\frac{2}{3}^n}{\frac{5}{12}}=\frac{3}{5}\frac{2}{3}^n$$
However, the solution should be $$\frac{3}{5}\frac{2}{3}^n-\frac{3}{5}\frac{1}{4}^n$$. What did I wrong?
Note: the question arises from another problem, see here
The recurrent equation is \begin{align} a_n-\dfrac{1}{4}a_{n-1}=\dfrac{1}{4}\left(\dfrac{2}{3}\right)^{n-1}, n=1,2,\ldots. \end{align}
Solve the homogeneous equation, $$a_n-\dfrac{1}{4}a_{n-1}=0.$$ The characteristic equation is $$r-\dfrac{1}{4}=0$$ which gives $$r=\dfrac{1}{4}.$$ The solution of homogeneous equation is $$a_n^{(c)}=C\left(\dfrac{1}{4}\right)^n.$$
Now, we solve non-homogenous equation. Let the particular solution is $$a_n^{(p)}=A\left(\dfrac{2}{3}\right)^{n-1}.$$ Substituting particular solution to recurrent equation gives \begin{align} A\left(\dfrac{2}{3}\right)^{n-1}-\dfrac{1}{4}A\left(\dfrac{2}{3}\right)^{n-2}=\dfrac{1}{4}\left(\dfrac{2}{3}\right)^{n-1}, n=1,2,\ldots. \end{align} Now, we have \begin{alignat}{2} && A\left(\dfrac{2}{3}\right)^{n-1}-\dfrac{3}{8}A\left(\dfrac{2}{3}\right)^{n-1}&=\dfrac{1}{4}\left(\dfrac{2}{3}\right)^{n-1}, n=1,2,\ldots.\\ \iff\quad && \dfrac{5}{8}A\left(\dfrac{2}{3}\right)^{n-1}&=\dfrac{1}{4}\left(\dfrac{2}{3}\right)^{n-1}, n=1,2,\ldots. \end{alignat} Now we have \begin{alignat}{2} && \dfrac{5}{8}A&=\dfrac{1}{4}\\ \iff\quad && A&=\dfrac{2}{5}. \end{alignat} So, the particular solution is $$a_n^{(p)}=\dfrac{2}{5}\left(\dfrac{2}{3}\right)^{n-1}.$$ So, the solution of recurrent equation is \begin{alignat}{2} && a_n&=a_n^{(c)}+a_n^{(p)}\\ \iff\quad && a_n&=C\left(\dfrac{1}{4}\right)^n+\dfrac{2}{5}\left(\dfrac{2}{3}\right)^{n-1}\\ \iff\quad && a_n&=C\left(\dfrac{1}{4}\right)^n+\dfrac{3}{5}\left(\dfrac{2}{3}\right)^{n}. \end{alignat}
Related to this question: Markov chain probability state question, the initial condition is $a_1=\dfrac{1}{4}$.
We find constant $C$ as below \begin{alignat}{2} && a_n&=C\left(\dfrac{1}{4}\right)^n+\dfrac{3}{5}\left(\dfrac{2}{3}\right)^{n}\\ \iff\quad && a_1&=C\left(\dfrac{1}{4}\right)+\dfrac{3}{5}\left(\dfrac{2}{3}\right)=\dfrac{1}{4} \\ \iff\quad && \dfrac{1}{4}C&=\dfrac{1}{4}-\dfrac{2}{5}=-\dfrac{3}{20}\\ \iff\quad && C&=-\dfrac{3}{5} \end{alignat}
So, the solution is $$ a_n=-\dfrac{3}{5}\left(\dfrac{1}{4}\right)^n+\dfrac{3}{5}\left(\dfrac{2}{3}\right)^{n}. $$