If we have a modular equation say $5^{x+1}\mod2^{n+1}$, where $5^x \equiv1\mod2^n$, we also know that $5\equiv1\mod2$. I know from playing around with an online mod calculator that $5^{x+1}\equiv1\mod2^{n+1}$ aswell.
My question is:
Do we have some type of rule for this maybe something like $5^{x+1}\mod2^{n+1}\equiv5^x\mod2^n \times 5\mod2$ ?
There can't be an equation as take $n=3$ $5^2\cong5^4\cong1$ mod8 yet $5^3\cong13$ mod 16 while $5^5\cong1$. This problem is essentially the fact that 5 always generates the largest non trivial subgroup of $\mathbb{Z}/2^n\mathbb{Z}^\times\cong C_2\times C_{n-2}$ so we can always take $x=2^{n-2}=\varphi(2^{n-1})$ and $y=2^{n-1}=\varphi(2^n)=2\varphi(2^{n-1})$ and thus as 5 generates we see that $5^x\ncong5^y\cong1$mod $2^n$. However, should you put a restriction on $x$ I'm sure you should make an equation.