(Please help me to rename the question title, if required. My background is engineering.).
Given 2 positive integers $P$ and $L$, I have 4 non-negative integer variables $p,q,\lambda$ and $\mu$, whose values can be: $$\begin{align} p &\in [0,P-1] \\ q &\in [0,LP-1] \\ \lambda &\in [0,L-1] \\ \mu &\in [0,P-1] \end{align}$$
I am interested in knowing when both of the following 2 conditions are met (simultaneously):
- $\frac{q-\lambda}{L}$ is an integer.
- $\frac{\frac{q-\lambda}{L} - \mu - p}{P}$ is an integer.
I have reason to believe (by writing a simple computer program) that for each choice of $\{p,q\}$, there is exactly one combination of $\lambda$ and $\mu$ that will satisfy these conditions. If possible, I would like to prove that this is true... and if it is, then derive equations that tell me (as a function of $p$ and $q$) what the values of $\lambda$ and $\mu$ should be.
Many thanks for any help!
Your choice of $ \lambda $ is forced to be $ q $ mod $ L $. Then $ \mu $ is forced to be $ \left( \cfrac{q-\lambda}{L} - p \right )$ mod $ P $