Let $n$ be an integer $n=0,1,2,\ldots$ The divisibility of the following odd numbers (e.g. by 7) is structured as follows:
- $7\mid[4]_7\cdot2^{3n+1}-1$
- $7\mid[2]_7\cdot2^{3n+2}-1$
- $7\mid[1]_7\cdot2^{3n+3}-1$
What is the general law for such divisibilities? Which algebraic structure (ideals, rings, p-adic valuations, or whatever) covers such behavior? May even I missed some residue classes - how may I show that the three above-shown cases cover all such divisibilities?
The same applies to the divisibility by five:
- $5\mid[3]_5\cdot2^{4n+1}-1$
- $5\mid[4]_5\cdot2^{4n+2}-1$
- $5\mid[2]_5\cdot2^{4n+3}-1$
- $5\mid[1]_5\cdot2^{4n+4}-1$
Of course I can show inductively that these divisibilities exists. But is there a general algebraic approach that explains this?