How many $n$-digit positive integers satisfy that the product of its digits makes 1 remainder $\pmod 4$?
What I know is that each digit is odd and I know a really long formula. If $a_n$ is the number of $n$- digit numbers satisfying the conditions, then my formula uses $a_1,\dots, a_n$, but I believe there exist an easier, shorter formula.
Let $a_n$ be the number of $n$-digit positive integers satisfying the product of its digits is $1\pmod{4}$. Let $b_n$ be the number of $n$-digit positive integers satisfying that the product of its digits is $3\pmod{4}$. Note that $a_n+b_n=5^n$ since every $n$-digit number consisting entirely of odd-digits falls into exactly one of these cases and vice versa and so $b_n=5^n-a_n$.
To create a string of length $n+1$, we can take a string of length $n$ whose product is $1\pmod{n}$ and tack on a
1,5, or9at the end or we can take a string of length $n$ whose product is $3\pmod{n}$ and tack on a3or7at the end, giving $a_{n+1}=3a_n+2b_n=3a_n+2(5^n-a_n)=a_n+2\cdot 5^n$.This along with an initial condition of $a_1=3$ gives a recurrence formula for the number you wish to count. This can then be solved for a closed form if you so desire and will be of the form $a_n=c+d\cdot 5^n$ for some constants $c$ and $d$.