Fairly new to modular arithmetic and I've searched through several sources and have not figured out how to do this. I have the following equation:
- s = (k * (h + x * r)) mod q
How would one solve for x? I am quite unsure of what to do with the mod q.