$ab $ mod $ c = d$
$b$ and $c$ are coprime meaning that $d$ is unique in the range $0$ to $c-1$.
How can I solve for a given $b, c,$ and $d$? Known that $a$ is in range $0$ to $c-1$
Real World Example:
I have 10 people in a queue. If I wanted to split their positions by 7 places in order. I would start with [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] -> [0, 3, 6, 9, 2, 5, 8, 1, 4, 7]
The index of each person after the rearrange is:
(original index * shift in index) mod number of people = new index
I want to find the inverse. Which person in the original queue ended up at the given index in the new queue.