Блог пользователя learner_321

Автор learner_321, история, 6 лет назад, По-английски

Can we apply extend Extended Euclidean algorithm for negative numbers?

Like for 3*x-4*y=1 output will be x=3 , y=2 .

  • Проголосовать: нравится
  • -6
  • Проголосовать: не нравится

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Why don't you just try it out?

Btw, even if it doesn't work, you can solve 3*x + 4*y = 1, receive the answer (x, y) to this modified problem, and the answer to your original problem will be (x, -y).