10178

# Extended GCD of Quadratic Integers

Consider the quadratic field and the associated ring of integers , where if and if . We assume is principal but not necessarily Euclidean. We compute the GCD of two elements , of modulo a unit of . The computation also gives explicit coefficients , for the Bézout identity . This is done by reducing binary quadratic forms and considering the sum of ideals as the ideal , with .

### DETAILS

This algorithm computes the GCD of two quadratic integers; it does this by combining the following operations:
1) compute the sum of two ideals of and put the ideal result into canonical form: , , so that the norm of this ideal is then .
2) find a generator of an ideal (an element such that is equal to the norm of the ideal, that is, ). Recall that the norm of an element is , where if and if .
3) represent the integer 1 by a binary quadratic form.
This method is quite efficient for small quadratic integers, but could be lengthy for large numbers.
References:
[1] D. A. Buell, Binary Quadratic Forms, New York: Springer–Verlag, 1989.
[2] A. Miled and A. Ouertani, "Extended GCD of Quadratic Integers," arXiv, 2010.

### PERMANENT CITATION

 Share: Embed Interactive Demonstration New! Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details » Download Demonstration as CDF » Download Author Code »(preview ») Files require Wolfram CDF Player or Mathematica.

#### Related Topics

 RELATED RESOURCES
 The #1 tool for creating Demonstrations and anything technical. Explore anything with the first computational knowledge engine. The web's most extensive mathematics resource. An app for every course—right in the palm of your hand. Read our views on math,science, and technology. The format that makes Demonstrations (and any information) easy to share and interact with. Programs & resources for educators, schools & students. Join the initiative for modernizing math education. Walk through homework problems one step at a time, with hints to help along the way. Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet. Knowledge-based programming for everyone.