I am trying to find when the following is true:
Let $H =(10k)^b \bmod 6(p-1)$
Let $J = 10^{H} \bmod 9p$
For some prime $p > 5$ and large $k,b$.
I am trying to find when $J$ is equal to $1$. However I have no idea how to even begin compressing this into something a little more palatable. Right now I am using binary exponentiation to compute $a^b \bmod m$ in general but I am wondering if there is a simpler way to determine when $J = 1$ (i.e. if there is some way to tell which combinations of variables will render this true).
Equivalently:
When does $10^{(10k)^b} \bmod 9p$ equal $1$?