22. a) For $n \in Z^+$, let $a_n$ count the number of palindromes of $2n$. Then $a_{n+1} = 2a_n$, $n \ge 1$, $a_1 = 2$. Solve this first-order recurrence relation for $a_n$.
b) For $n \in Z^+$, let $b_n$ count the number of palindromes of $2n-1$. Set up and solve a first-order recurrence relation for $b_n$.