Skip to main content

Questions tagged [euclidean-algorithm]

For questions about the uses of the Euclidean algorithm, Extended Euclidean algorithm, and related algorithms in integers, polynomials, or general Euclidean domains. This is **not** about Euclidean geometry.

Filter by
Sorted by
Tagged with
-3 votes
0 answers
59 views

edit: projecteuler.net discourages sharing direct solutions for problems after 1-100, i just need some hints, then i can work up from there problem 958 (Euclid's Labour) from projecteuler.net (...
rheesus's user avatar
8 votes
3 answers
310 views

The greatest common divisor (gcd) of two integers $a$ and $b$ can be computed with the Euclidean Algorithm. With the gcd known, one can compute the least common multiple (lcm) via the formula $\mathrm{...
Martin's user avatar
  • 741
1 vote
1 answer
76 views

Let $A$ be a Euclidean domain, i.e. an integral domain together with a Euclidean degree function $\delta \colon A \setminus \{0\} \to \mathbb{N}$ such that for every $a, b \in A$, $b \neq 0$ there ...
Jakob Werner's user avatar
1 vote
1 answer
135 views

Assume everything known about resultant of two polynomials on one variable. Now suppose we are given polynomials $P(x,y)$ and $Q(x,y)$, aiming to find whether they have a non-constant common factor. ...
DesmondMiles's user avatar
  • 2,989
1 vote
0 answers
70 views

I have a linear diophtantine equation $$28x + 30y + 31z=365$$ and want to find all its solutions. Using the Gauss-Euclid algorithm, I start with the matrix $$\pmatrix{28 & 1 & 0 & 0 \\ 30 &...
Daigaku no Baku's user avatar
1 vote
0 answers
81 views

I have a question about the proof Lang provided in "Undergraduate Algebra". First, he proves that given two integers $m,n, \ m > 0$, there exists other two integers $q,r, \ 0\le r < m$ ...
deomanu01's user avatar
  • 173
0 votes
1 answer
201 views

I recently looked at the question Sequences with Difference Occurring and the answer. The accepted answer suggests that Repeatedly take the absolute value of the difference of consecutive terms, and ...
VectObt's user avatar
  • 573
0 votes
1 answer
133 views

If $a,b$ natural numbers and $\gcd(a,b)=1$, determine all value of $\gcd(2a+b,b^5-a^5)$ Can anyone help me, I'm trying to use Euclidean algorithm but its just stuck. First,you can split $b^5-a^5=(b-a)(...
Lim Zhao Sen's user avatar
0 votes
0 answers
28 views

Let $w = \frac{1+\sqrt{-11}}{2}$ and let $R = \mathbb{Z}[w] = \{a + b w \mid a, b \in \mathbb{Z}\}$. Show that $R$ is a Euclidean domain. I used the norm function $\phi(a+bw)=a^2 + ab + 3b^2$ as my ...
Mustafa's user avatar
  • 83
1 vote
0 answers
48 views

It is fairly common to define the resultant and the $i$-th subresultant as determinant of some matrix involving the sylvester matrix. I would like to avoid the sylvester matrix. I wonder if it is not ...
Michael Palm's user avatar
1 vote
2 answers
112 views

Wikipedia states that the resultant of two monic polynomials $a,b\in K[x]$ remains the same, if one replaces $b$ with $(b-qa)$, where $q\in K[x]$ is another polynomial: $$\mathrm{res}(a,b) = \mathrm{...
Michael Palm's user avatar
10 votes
2 answers
310 views

The Problem: I need only the bottom left element of a product of matrices $(\bf{M_1}+\bf{I})(\bf{M_2}+\bf{I})\cdots(\bf{M_N}+\bf{I})$, where $\bf{I}=\begin{pmatrix} 1 & 0\\ 0 & 1\end{pmatrix}$,...
WeCanDoItGuys's user avatar
1 vote
0 answers
35 views

I have some regular area (e.g. a rectangle or a square), and I have $N$ random points there. Further, I have $k$ agents to visit the random points. The aim is to minimise total costs. Is there any ...
Andres Fielbaum's user avatar
0 votes
0 answers
52 views

Theorem If $a = bq+r, \text{then gcd}(a,b)=\text{gcd}(b,r) ... \text{gcd}(r_{i-1},r_i) = \text{gcd}(r_i,0)=r_i$. Proof: Let $d$ be a common divisor of $a$ and $b: d|a, d|b \implies d|(a-bq)\implies d|...
PabloSaint's user avatar
0 votes
1 answer
86 views

Let $f,g\in A[x]$ with $A$ a commutative ring. IIUC, the extended Euclidean algorithm computes a minimal degree element in the ideal $\langle f,g\rangle\vartriangleleft A[x]$ (alongside the Bézout ...
Arrow's user avatar
  • 14.5k
0 votes
0 answers
44 views

Problem Let $f:Z \to Z$ that for all $a\geq b\in Z$ exists at least one $k\in Z$ where $f(a) - kf(b) = f(a-b)$. Prove that $gcd(f(a), f(b)) = f(gcd(a,b))$. Where did it come from? I was working with $...
Kotarou's user avatar
  • 17
0 votes
3 answers
177 views

I'm trying to develop an intuitive sense for why the euclidean algorithm is true, and I'm stuck on how to prove that it's the greatest common factor vs just A common factor. So far I can understand ...
MechaMarinara's user avatar
0 votes
1 answer
104 views

Problem: Suppose that for two given Gaussian integers $a$ and $b\ (|a|>|b|>0)$, there exists $a_0$ such that the remainder of the Euclidean division of $a_0$ by $a$ is exactly $b$. If it takes $...
Frisk's user avatar
  • 55
0 votes
1 answer
189 views

I'm trying to understand how the matrix form of the extended euclidian algorithm for polynomials works for a BCH code with coefficients from $GF(2^4)$ in https://en.wikipedia.org/wiki/BCH_code for ...
user159729's user avatar
0 votes
1 answer
60 views

I have been reviewing Bill Dubuque's explanation of a forward version of the extended Euclidean algorithm in another question. I have seen other explanations of this method on the internet, but Bill's ...
k endres's user avatar
0 votes
1 answer
59 views

Let R be a commutative ring with identity, and J an ideal generated by the members $a^n-1$ and $a^m-1$ for some $a \in R$ and $n, m$ positive integers. I want to establish that the principal ideal ...
giorgio's user avatar
  • 693
0 votes
1 answer
140 views

This is one following question based on one question I asked before In spring18 mcs.pdf, it has Problem 9.13: Define the Pulverizer State machine to have: $$ \begin{align*} \text{states} ::=&...
An5Drama's user avatar
  • 456
0 votes
1 answer
191 views

From Eric Lehman et al.'s Mathematics for Computer Science [PDF]: Problem 9.13. $\,$ Define the Pulverizer state machine to have: $$ \begin{align*} \text{states} ::=& \mathbb{N}^6&\\ \...
An5Drama's user avatar
  • 456
-1 votes
1 answer
63 views

Given the RSA public key find the decryption key d and decrypt the ciphertext c=8. Known information: n=119, p=17, q=7, e=13 $\phi(n) = (p-1)(q-1) = 16\times 6=96$ Equation for finding d: $$ed\...
Alix Blaine's user avatar
1 vote
1 answer
125 views

Given the RSA public key find the decryption key d and decrypt the ciphertext c=5. Known information: n=221, p=17, q=13, e=11 $\phi(n) = (p-1)(q-1) = 16\times 12=192$ Equation for finding d: $$ed\...
Alix Blaine's user avatar
0 votes
4 answers
239 views

Use the Euclidean algorithm to find ALL the integer solutions of the equation: $$5x+72y=1$$ My attempt: $5x + 72y =1$ $72 = 14 \times 5 + 2 \quad (14~obtained~by~72/5 = 14.4)$ $5 = 2 \times 2 + 1$ ...
Alix Blaine's user avatar
4 votes
1 answer
140 views

If $c,d$ are two relatively prime positive integers, then we can find integers $a,b$ such that $ad-bc=1$. But $a$ and $b$ are not unique: we can replace $a$ with $a+kc$ and $b$ with $b+kd$ for any ...
Math101's user avatar
  • 1,180
4 votes
0 answers
139 views

As a continuation of this question relating the Minimum $k$ for which every positive integer of the interval $(kn, (k+1)n)$ is composite and this other one on the divisibility of numbers in intervals ...
Juan Moreno's user avatar
  • 1,102
1 vote
3 answers
366 views

From the book Discrete Mathematics for Computing 2nd Edition in eBook: I know how to perform the Euclidean Algorithm and GCM(a,b). I am however, deeply confused by this: $$1 = 415 - 69(421 - 1 \times ...
Alix Blaine's user avatar
0 votes
0 answers
51 views

I have done similar type of questions before by using the Euclidean Division Lemma/Algorithm to rewrite the equation and then find the solution, but those were problems with only two variables. In the ...
1025's user avatar
  • 49
1 vote
1 answer
133 views

I noticed the quantity of numbers from 1-100 with remainder zero modulo nine = quantity of numbers from 1-100 with remainder one modulo nine > quantity of numbers from 1-100 with remainder 2 modulo ...
user avatar
1 vote
1 answer
186 views

The version of the Euclidean algorithm that I'm trying to prove is as follows: $$\text{For natural numbers $a$ and $b$ such that $a \geq 1,$ $b \geq 0$ and $a \geq b,$ gcd($a,b$) =} \begin{cases} a, &...
Kushagr Jaiswal's user avatar
0 votes
0 answers
34 views

The question is the following: "Determine the pair of numbers m,n such that gcd(1234,5678)=1234⋅m+5678⋅n for which n is the smallest positive integer". I found that m=704 and n=-153. But n ...
Nare Avetisyan's user avatar
2 votes
1 answer
263 views

Turns out that I cannot find such thing as "the definition of division with remainder" for rings. It is all good if we specify integers, polynomials, etc, were one division with remainder is ...
dragomang87's user avatar
0 votes
0 answers
66 views

Thank you beforehand for reading my question. In the terms that I want to understand the Extended version of the Euclidean Algorithm, I understand the Euclidean Algorithm as follows: You find the ...
Anthony's user avatar
0 votes
0 answers
61 views

this question follows one from yesterday that got deleted because it was a duplicate. The problem was about solving this equation (in $ℚ[x]$) : $$f(x)(2x^3 + 3x^2 + 7x + 1) + g(x)(5x^4 + x + 1) = x + ...
AANICR's user avatar
  • 93
0 votes
1 answer
147 views

Find polynomials $M(x)$ and $N(x)$ such that $$ x^{m}M(x)+(1-x)^{n}N(x)=1. $$ Here are my thoughts about the problem. If I substitute $0$ in the left side of equation I get $f(0)=N(0)=1$, so I have ...
bob's user avatar
  • 61
2 votes
1 answer
155 views

Let $f, g \in \mathbb{Z}[x]$. Let also $h \in \mathbb{Q}[x]$ be the $\gcd(f,g)$ found by the Euclidean algorithm. Now, for $p$ an odd prime, let $h^* \in \mathbb{Z}/p\mathbb{Z}[x]$ be the $\gcd(f,g)$ ...
Max Bow-Arrow's user avatar
0 votes
0 answers
73 views

When working in the field $\mathbb{Q}[X] / \langle X^3 + 3X + 3 \rangle$, let $a$ represent the image of $X$ under the natural quotient mapping. I am trying to understand the range of strategies that ...
B.H.'s user avatar
  • 1
1 vote
0 answers
627 views

I am studying clustering with K-Means algorithm and I got stumbled in the "inertia", or "within cluster sum of squares" part. First I would appreciate if anyone could explain me ...
Artur Juan Dantas's user avatar
0 votes
2 answers
295 views

Here is the question I am trying to understand its solution: Let $R = \mathbb Z + x \mathbb Q[x] \subset \mathbb Q[x]$ be the set of polynomials in $x$ with rational coefficients whose constant is an ...
Intuition's user avatar
  • 3,153
1 vote
0 answers
114 views

Let $f,g\in A[x]$ with $A$ a commutative ring. Suppose $f$ is monic (for convenience), so that $A[x]/\langle f\rangle $ is a free $A$-module. If I understand correctly, the extended Euclidean ...
Arrow's user avatar
  • 14.5k
0 votes
2 answers
275 views

A triangle $ABC$ is given as shown below. We know that $i = i_1$ and $k = k_1 = k_2$. Determine angle $\gamma$ $geometrically$. Note: Through variations in 'geogebra' I think that $\gamma = \frac{3}{4}...
Marie L's user avatar
  • 53
0 votes
0 answers
18 views

I'm a bit stuck on one part of Bézout's identity when used with Euclid's algorithm. The specific part of the equation I can't see is; ...
CoedFoel's user avatar
1 vote
0 answers
124 views

I have a question about the use of projections in Lang's proof of the Euclidean division algorithm for power series (Algebra - Serge Lang, Chapter IV, section 9, Theorem 9.1). Specifically, there is a ...
Zahra Abdullah's user avatar
1 vote
0 answers
42 views

I am trying to prove one of the early questions in Serge Lang's Undergraduate Algebra textbook (Question 1 on Section 1.5) and I am not sure if I have proven it correctly. Let $n, d \in \mathbb{N}$ ...
user avatar
4 votes
0 answers
90 views

Here's the problem For two odd $m$ and $n$, which are coprime, consider the interval $[0, mn]$ and let $$ A = \{0, m, 2m, \dots , nm\} \quad\text{and}\quad B = \{0, n, 2n, \dots , mn\}. $$ ...
Cheese's user avatar
  • 191
1 vote
1 answer
312 views

I am studying integer division in C++. At the same time, I read the wikipedia article 'Euclidean division'. In this article there is such a lemma: ...
Ilya Chalov's user avatar
1 vote
1 answer
187 views

Given 2 non-negative integers $a$, $b$ that range between (1 and 1e9), let $c = |a - b|$ and after calculating $c$ let $a = b$, $b = c$ then recalculate $c$. what is the number of operations needed ...
Youssef Tarek's user avatar
1 vote
0 answers
563 views

I'm having trouble with the Claim: In a Euclidean domain $R$, every element with minimum norm is a unit. The proofs I have seen say, e.g., $1 = q a + r$, where $a$ has minimum norm $N(a) = m$. Then, $...
Cliff's user avatar
  • 145

1
2 3 4 5
17