An $(a,b)$-knight is defined here: Can an $(a,b)$-knight reach every point on a chessboard?. Starting from a position $(x_0, y_0)$, it can basically move to $(x_0 + a, y_0 + b)$, $(x_0 + a, y_0 - b)$, $(x_0 + b, y_0 + a)$, $(x_0 - b, y_0 + a)$, $(x_0 - a, y_0 + b)$, $(x_0 - a, y_0 - b)$, $(x_0 + b, y_0 - a)$ or $(x_0 - b, y_0 - a)$. Given a position larger by $(x,y)$ from a starting position, the question is whether the knight can reach it.
I think that the idea is to find $\alpha_i$, $i=1,2,...,8$ such that $\sum_{i=1}^{8} \alpha_i \cdot p_i = (x,y)$, where $p_i$ represent all 8 possible moves of the knight written above. This could be rewritten as a system of two diophantine equations $a \cdot A + b \cdot B = x$ and $a \cdot C + b \cdot D = y$, where $A, B, C, D$ are combinations of $\alpha_i$ obtained after we expand the formula with the sum written above. Solutions exist if $gcd(a,b)$ divides both $x$ and $y$, in which case one can use the Extended Euclidean Algorithm to find $A, B, C, D$.
If my reasoning is correct up to this point, I don't know how to find the $\alpha_i$ after I compute $A, B, C, D$. All 8 $\alpha_i$ describe the movement of the knight.
Could someone help?