GCD esteso

Calcola MCD e coefficienti di Bézout: a×x + b×y = gcd(a,b).

Input: TestoRisultato: Testo

Inserimento di testo

Opzioni

Esempi

using input field for value a

Input

42

Expected answer

gcd: 7

Bezout coefficients:
x = 1
y = -1

Valore a
(empty)
Valore b
35
coprime numbers (3, 11)

Input

Expected answer

gcd: 1

Bezout coefficients:
x = 4
y = -1

Valore a
3
Valore b
11
hexadecimal input (0xFF, 0x11)

Input

Expected answer

gcd: 17

Bezout coefficients:
x = 0
y = 1

Valore a
0xFF
Valore b
0x11
large numbers

Input

Expected answer

gcd: 2

Bezout coefficients:
x = 12703973750415151
y = -1577756566311408967124629843

Valore a
123456789012345678901234567890
Valore b
994064509324197316
non-coprime numbers (240, 46)

Input

Expected answer

gcd: 2

Bezout coefficients:
x = -9
y = 47

Valore a
240
Valore b
46
with zero (17, 0)

Input

Expected answer

gcd: 17

Bezout coefficients:
x = 1
y = 0

Valore a
17
Valore b
0

Parametri

ParametroValore predefinitoInput e opzioni
Valore a""Testo
Valore b""Testo

Strumenti correlati

Aritmetica / Logica

Riferimento dell’operazione

Vedi la documentazione tecnica originale (English)