solve 2^y = 694 + 1387x over the integers