so is there a more direct way to solve this other than trial and error? Some solution involving modular arithmetic?
so is there a more direct way to solve this other than trial and error? Some solution involving modular arithmetic?