Proving fraction is irreducible












3












$begingroup$


Example:
The fraction $frac{4n+7}{3n+5}$ is irreducible for all $n in mathbb{N}$, because $3(4n+7) - 4(3n+5) = 1$

and if $d$ is divisor of $4n+7$ and $3n+5$, it divides $1$, so $d=1$.



I want to know if there is some general method of finding $x, y in mathbb{Z}$,
so that $$x(an+b) + y(cn+d) = 1$$ when $(an+b, cn+d) = 1$, instead of trial and error,

or some quicker and easier way (for not so pretty fractions) for determining whether it is irreducible.










share|cite|improve this question











$endgroup$








  • 3




    $begingroup$
    Heard of eulidian gcd algorithm ?
    $endgroup$
    – rsadhvika
    Dec 13 '18 at 19:53








  • 2




    $begingroup$
    See this answer.
    $endgroup$
    – Bill Dubuque
    Dec 13 '18 at 19:57






  • 1




    $begingroup$
    @someone first do you see why $gcd(a, b)$ will be same as $gcd(a-b, b)$ ?
    $endgroup$
    – rsadhvika
    Dec 13 '18 at 19:58






  • 1




    $begingroup$
    Sorry, no knowledge in linear algebra, should've mentioned that ..
    $endgroup$
    – user626177
    Dec 13 '18 at 19:59






  • 1




    $begingroup$
    Find minimum of exponents in prime factorization ?
    $endgroup$
    – user626177
    Dec 13 '18 at 20:12
















3












$begingroup$


Example:
The fraction $frac{4n+7}{3n+5}$ is irreducible for all $n in mathbb{N}$, because $3(4n+7) - 4(3n+5) = 1$

and if $d$ is divisor of $4n+7$ and $3n+5$, it divides $1$, so $d=1$.



I want to know if there is some general method of finding $x, y in mathbb{Z}$,
so that $$x(an+b) + y(cn+d) = 1$$ when $(an+b, cn+d) = 1$, instead of trial and error,

or some quicker and easier way (for not so pretty fractions) for determining whether it is irreducible.










share|cite|improve this question











$endgroup$








  • 3




    $begingroup$
    Heard of eulidian gcd algorithm ?
    $endgroup$
    – rsadhvika
    Dec 13 '18 at 19:53








  • 2




    $begingroup$
    See this answer.
    $endgroup$
    – Bill Dubuque
    Dec 13 '18 at 19:57






  • 1




    $begingroup$
    @someone first do you see why $gcd(a, b)$ will be same as $gcd(a-b, b)$ ?
    $endgroup$
    – rsadhvika
    Dec 13 '18 at 19:58






  • 1




    $begingroup$
    Sorry, no knowledge in linear algebra, should've mentioned that ..
    $endgroup$
    – user626177
    Dec 13 '18 at 19:59






  • 1




    $begingroup$
    Find minimum of exponents in prime factorization ?
    $endgroup$
    – user626177
    Dec 13 '18 at 20:12














3












3








3





$begingroup$


Example:
The fraction $frac{4n+7}{3n+5}$ is irreducible for all $n in mathbb{N}$, because $3(4n+7) - 4(3n+5) = 1$

and if $d$ is divisor of $4n+7$ and $3n+5$, it divides $1$, so $d=1$.



I want to know if there is some general method of finding $x, y in mathbb{Z}$,
so that $$x(an+b) + y(cn+d) = 1$$ when $(an+b, cn+d) = 1$, instead of trial and error,

or some quicker and easier way (for not so pretty fractions) for determining whether it is irreducible.










share|cite|improve this question











$endgroup$




Example:
The fraction $frac{4n+7}{3n+5}$ is irreducible for all $n in mathbb{N}$, because $3(4n+7) - 4(3n+5) = 1$

and if $d$ is divisor of $4n+7$ and $3n+5$, it divides $1$, so $d=1$.



I want to know if there is some general method of finding $x, y in mathbb{Z}$,
so that $$x(an+b) + y(cn+d) = 1$$ when $(an+b, cn+d) = 1$, instead of trial and error,

or some quicker and easier way (for not so pretty fractions) for determining whether it is irreducible.







number-theory elementary-number-theory fractions rational-numbers greatest-common-divisor






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 13 '18 at 22:05

























asked Dec 13 '18 at 19:49







user626177















  • 3




    $begingroup$
    Heard of eulidian gcd algorithm ?
    $endgroup$
    – rsadhvika
    Dec 13 '18 at 19:53








  • 2




    $begingroup$
    See this answer.
    $endgroup$
    – Bill Dubuque
    Dec 13 '18 at 19:57






  • 1




    $begingroup$
    @someone first do you see why $gcd(a, b)$ will be same as $gcd(a-b, b)$ ?
    $endgroup$
    – rsadhvika
    Dec 13 '18 at 19:58






  • 1




    $begingroup$
    Sorry, no knowledge in linear algebra, should've mentioned that ..
    $endgroup$
    – user626177
    Dec 13 '18 at 19:59






  • 1




    $begingroup$
    Find minimum of exponents in prime factorization ?
    $endgroup$
    – user626177
    Dec 13 '18 at 20:12














  • 3




    $begingroup$
    Heard of eulidian gcd algorithm ?
    $endgroup$
    – rsadhvika
    Dec 13 '18 at 19:53








  • 2




    $begingroup$
    See this answer.
    $endgroup$
    – Bill Dubuque
    Dec 13 '18 at 19:57






  • 1




    $begingroup$
    @someone first do you see why $gcd(a, b)$ will be same as $gcd(a-b, b)$ ?
    $endgroup$
    – rsadhvika
    Dec 13 '18 at 19:58






  • 1




    $begingroup$
    Sorry, no knowledge in linear algebra, should've mentioned that ..
    $endgroup$
    – user626177
    Dec 13 '18 at 19:59






  • 1




    $begingroup$
    Find minimum of exponents in prime factorization ?
    $endgroup$
    – user626177
    Dec 13 '18 at 20:12








3




3




$begingroup$
Heard of eulidian gcd algorithm ?
$endgroup$
– rsadhvika
Dec 13 '18 at 19:53






$begingroup$
Heard of eulidian gcd algorithm ?
$endgroup$
– rsadhvika
Dec 13 '18 at 19:53






2




2




$begingroup$
See this answer.
$endgroup$
– Bill Dubuque
Dec 13 '18 at 19:57




$begingroup$
See this answer.
$endgroup$
– Bill Dubuque
Dec 13 '18 at 19:57




1




1




$begingroup$
@someone first do you see why $gcd(a, b)$ will be same as $gcd(a-b, b)$ ?
$endgroup$
– rsadhvika
Dec 13 '18 at 19:58




$begingroup$
@someone first do you see why $gcd(a, b)$ will be same as $gcd(a-b, b)$ ?
$endgroup$
– rsadhvika
Dec 13 '18 at 19:58




1




1




$begingroup$
Sorry, no knowledge in linear algebra, should've mentioned that ..
$endgroup$
– user626177
Dec 13 '18 at 19:59




$begingroup$
Sorry, no knowledge in linear algebra, should've mentioned that ..
$endgroup$
– user626177
Dec 13 '18 at 19:59




1




1




$begingroup$
Find minimum of exponents in prime factorization ?
$endgroup$
– user626177
Dec 13 '18 at 20:12




$begingroup$
Find minimum of exponents in prime factorization ?
$endgroup$
– user626177
Dec 13 '18 at 20:12










2 Answers
2






active

oldest

votes


















0












$begingroup$

Before answering your question, I will just give the following two facts:



Let $gcd(a,b) = g$






  1. $g$ is the smallest positive integer such that $ax+by = g$ for any integers $x,y$.

  2. $$gcd(a,b) = gcd(a+bx, b) = gcd(a,b+ax)$$




The proof of these two is elementary. In fact, it can be found somewhere here in this website.



Now, Euclidean Algorithm is used to find $g$ in $(1)$. How to apply this algorithm? you may refer to this website for more information.



In our case, the fraction is irreducible if and only if the greatest common divisor $g$ of the numerator and denominator is $1$. We can use the Euclidean Algorithm to find it, thought, and check.



Why do we need (2)?, Okay, this fact might be used as a shortcut to find $g$ in many occasions. For example, if I am given the following fraction and asked to prove it is irreducible: $$frac{3n+4}{18n+25}$$ then I can use this shortcut as follows: $$gcd(3n+4,18n+25) = gcd(3n+4, (18n+25) -6(3n+4)) = gcd(3n+4,1) = 1$$






share|cite|improve this answer









$endgroup$









  • 1




    $begingroup$
    That's what I was looking for, thank you!
    $endgroup$
    – user626177
    Dec 13 '18 at 20:40






  • 1




    $begingroup$
    @BillDubuque Yeah, I see how to do it without euclid
    $endgroup$
    – user626177
    Dec 13 '18 at 20:54






  • 1




    $begingroup$
    @MagedSaeed Kinda off topic, but can this be used effectively for higher exponents than $1$ ? Polynomials is what I'm referring to. Just looking for yes or no answer, I'll work it out why ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:04








  • 1




    $begingroup$
    @MagedSaeed Oh, okay, I'll look into it .. Thanks for detailed answer ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:13






  • 1




    $begingroup$
    @MagedSaeed I'm just getting into number theory ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:13



















0












$begingroup$


In general, for $a,b,c,d
inBbb N$
, the following statements are equivalent:
$(i)$ there are integers $x,y$ s.t. $x(an+b)+y(cn+d)=1$ for all $nin Bbb N$;
$(ii)$ $ad-bc$ divides $gcd(a,c)$;
$(iii)$ $|ad-bc| =gcd(a,c)$.

Note also that any of the statements $(i)$, $(ii)$, and $(iii)$ implies that
$(iv)$ the rational number $frac{an+b}{cn+d}$ is in the lowest form for all $nin Bbb N$.




Obviously $(ii)iff (iii)$ because $gcd(a,c)$ always divide $ad-bc$. In the case $ad-bcmid gcd(a,c)$, we can take $x=-frac{c}{ad-bc}$ and $y=frac{a}{ad-bc}$. So $(ii)implies (i)$. We now prove that $(i)implies (ii)$.



Suppose that such $x$ and $y$ exist. Then,
$$ax+cy=0wedge bx+dy=1.$$
That is, $(x,y)$ is an integer solution to
$$begin{pmatrix}a&c\b&dend{pmatrix}begin{pmatrix}x\yend{pmatrix}=begin{pmatrix}0\1end{pmatrix}.$$
Observe that the determinant $ad-bc$ of $begin{pmatrix}a&c\b&dend{pmatrix}$ cannot be $0$ (otherwise $(a,b)$ and $(c,d)$ are proportional, and so $an+b$ and $cn+d$ are also proportional). That is, the matrix $begin{pmatrix}a&b\c&dend{pmatrix}$ is invertible and
$$begin{pmatrix}x\yend{pmatrix}=begin{pmatrix}a&c\b&dend{pmatrix}^{-1}begin{pmatrix}0\1end{pmatrix}=frac{1}{ad-bc}begin{pmatrix}d&-c\-b&aend{pmatrix}begin{pmatrix}0\1end{pmatrix}.$$
So $(x,y)=frac{1}{ad-bc}(-c,a)$. That is, $ad-bcmid c$ and $ad-bcmid a$. So $ad-bcmid gcd(a,c)$.





In your example, $a=4$, $b=7$, $c=3$, and $d=5$. So, $ad-bc=-1 mid gcd(a,c)$, and we can take $x=-frac{c}{ad-bc}=3$ and $y=frac{a}{ad-bc}=-4$.



I should like to mention that $(iv)$ is not equivalent to any of the statements $(i)$, $(ii)$, and $(iii)$. The rational numbers of the form $frac{2n+1}{2n+3}$ is reduced for any $nin Bbb N$, but it does not meet $(i)$, $(ii)$, or $(iii)$ (i.e., $(a,b,c,d)=(2,1,2,3)$, so $gcd(a,c)=2$, but $ad-bc=4nmidgcd(a,c)$). However, $(iv)$ is equivalent to the condition that for any prime divisor $p$ of $ad-bc$, there does not exist $ninBbb N$ such that $p$ divides both $an+b$ and $cn+d$.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    Never studied linear algebra, but I guess I can use this as a shortcut without knowing why it's working ..
    $endgroup$
    – user626177
    Dec 13 '18 at 20:52










  • $begingroup$
    Why do you assume that the same $x$ and $y$ work for all $n,,$ i.e. that they don't depend on $n$?
    $endgroup$
    – Bill Dubuque
    Dec 14 '18 at 3:36













Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3038503%2fproving-fraction-is-irreducible%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown
























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0












$begingroup$

Before answering your question, I will just give the following two facts:



Let $gcd(a,b) = g$






  1. $g$ is the smallest positive integer such that $ax+by = g$ for any integers $x,y$.

  2. $$gcd(a,b) = gcd(a+bx, b) = gcd(a,b+ax)$$




The proof of these two is elementary. In fact, it can be found somewhere here in this website.



Now, Euclidean Algorithm is used to find $g$ in $(1)$. How to apply this algorithm? you may refer to this website for more information.



In our case, the fraction is irreducible if and only if the greatest common divisor $g$ of the numerator and denominator is $1$. We can use the Euclidean Algorithm to find it, thought, and check.



Why do we need (2)?, Okay, this fact might be used as a shortcut to find $g$ in many occasions. For example, if I am given the following fraction and asked to prove it is irreducible: $$frac{3n+4}{18n+25}$$ then I can use this shortcut as follows: $$gcd(3n+4,18n+25) = gcd(3n+4, (18n+25) -6(3n+4)) = gcd(3n+4,1) = 1$$






share|cite|improve this answer









$endgroup$









  • 1




    $begingroup$
    That's what I was looking for, thank you!
    $endgroup$
    – user626177
    Dec 13 '18 at 20:40






  • 1




    $begingroup$
    @BillDubuque Yeah, I see how to do it without euclid
    $endgroup$
    – user626177
    Dec 13 '18 at 20:54






  • 1




    $begingroup$
    @MagedSaeed Kinda off topic, but can this be used effectively for higher exponents than $1$ ? Polynomials is what I'm referring to. Just looking for yes or no answer, I'll work it out why ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:04








  • 1




    $begingroup$
    @MagedSaeed Oh, okay, I'll look into it .. Thanks for detailed answer ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:13






  • 1




    $begingroup$
    @MagedSaeed I'm just getting into number theory ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:13
















0












$begingroup$

Before answering your question, I will just give the following two facts:



Let $gcd(a,b) = g$






  1. $g$ is the smallest positive integer such that $ax+by = g$ for any integers $x,y$.

  2. $$gcd(a,b) = gcd(a+bx, b) = gcd(a,b+ax)$$




The proof of these two is elementary. In fact, it can be found somewhere here in this website.



Now, Euclidean Algorithm is used to find $g$ in $(1)$. How to apply this algorithm? you may refer to this website for more information.



In our case, the fraction is irreducible if and only if the greatest common divisor $g$ of the numerator and denominator is $1$. We can use the Euclidean Algorithm to find it, thought, and check.



Why do we need (2)?, Okay, this fact might be used as a shortcut to find $g$ in many occasions. For example, if I am given the following fraction and asked to prove it is irreducible: $$frac{3n+4}{18n+25}$$ then I can use this shortcut as follows: $$gcd(3n+4,18n+25) = gcd(3n+4, (18n+25) -6(3n+4)) = gcd(3n+4,1) = 1$$






share|cite|improve this answer









$endgroup$









  • 1




    $begingroup$
    That's what I was looking for, thank you!
    $endgroup$
    – user626177
    Dec 13 '18 at 20:40






  • 1




    $begingroup$
    @BillDubuque Yeah, I see how to do it without euclid
    $endgroup$
    – user626177
    Dec 13 '18 at 20:54






  • 1




    $begingroup$
    @MagedSaeed Kinda off topic, but can this be used effectively for higher exponents than $1$ ? Polynomials is what I'm referring to. Just looking for yes or no answer, I'll work it out why ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:04








  • 1




    $begingroup$
    @MagedSaeed Oh, okay, I'll look into it .. Thanks for detailed answer ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:13






  • 1




    $begingroup$
    @MagedSaeed I'm just getting into number theory ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:13














0












0








0





$begingroup$

Before answering your question, I will just give the following two facts:



Let $gcd(a,b) = g$






  1. $g$ is the smallest positive integer such that $ax+by = g$ for any integers $x,y$.

  2. $$gcd(a,b) = gcd(a+bx, b) = gcd(a,b+ax)$$




The proof of these two is elementary. In fact, it can be found somewhere here in this website.



Now, Euclidean Algorithm is used to find $g$ in $(1)$. How to apply this algorithm? you may refer to this website for more information.



In our case, the fraction is irreducible if and only if the greatest common divisor $g$ of the numerator and denominator is $1$. We can use the Euclidean Algorithm to find it, thought, and check.



Why do we need (2)?, Okay, this fact might be used as a shortcut to find $g$ in many occasions. For example, if I am given the following fraction and asked to prove it is irreducible: $$frac{3n+4}{18n+25}$$ then I can use this shortcut as follows: $$gcd(3n+4,18n+25) = gcd(3n+4, (18n+25) -6(3n+4)) = gcd(3n+4,1) = 1$$






share|cite|improve this answer









$endgroup$



Before answering your question, I will just give the following two facts:



Let $gcd(a,b) = g$






  1. $g$ is the smallest positive integer such that $ax+by = g$ for any integers $x,y$.

  2. $$gcd(a,b) = gcd(a+bx, b) = gcd(a,b+ax)$$




The proof of these two is elementary. In fact, it can be found somewhere here in this website.



Now, Euclidean Algorithm is used to find $g$ in $(1)$. How to apply this algorithm? you may refer to this website for more information.



In our case, the fraction is irreducible if and only if the greatest common divisor $g$ of the numerator and denominator is $1$. We can use the Euclidean Algorithm to find it, thought, and check.



Why do we need (2)?, Okay, this fact might be used as a shortcut to find $g$ in many occasions. For example, if I am given the following fraction and asked to prove it is irreducible: $$frac{3n+4}{18n+25}$$ then I can use this shortcut as follows: $$gcd(3n+4,18n+25) = gcd(3n+4, (18n+25) -6(3n+4)) = gcd(3n+4,1) = 1$$







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Dec 13 '18 at 20:33









Maged SaeedMaged Saeed

8671417




8671417








  • 1




    $begingroup$
    That's what I was looking for, thank you!
    $endgroup$
    – user626177
    Dec 13 '18 at 20:40






  • 1




    $begingroup$
    @BillDubuque Yeah, I see how to do it without euclid
    $endgroup$
    – user626177
    Dec 13 '18 at 20:54






  • 1




    $begingroup$
    @MagedSaeed Kinda off topic, but can this be used effectively for higher exponents than $1$ ? Polynomials is what I'm referring to. Just looking for yes or no answer, I'll work it out why ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:04








  • 1




    $begingroup$
    @MagedSaeed Oh, okay, I'll look into it .. Thanks for detailed answer ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:13






  • 1




    $begingroup$
    @MagedSaeed I'm just getting into number theory ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:13














  • 1




    $begingroup$
    That's what I was looking for, thank you!
    $endgroup$
    – user626177
    Dec 13 '18 at 20:40






  • 1




    $begingroup$
    @BillDubuque Yeah, I see how to do it without euclid
    $endgroup$
    – user626177
    Dec 13 '18 at 20:54






  • 1




    $begingroup$
    @MagedSaeed Kinda off topic, but can this be used effectively for higher exponents than $1$ ? Polynomials is what I'm referring to. Just looking for yes or no answer, I'll work it out why ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:04








  • 1




    $begingroup$
    @MagedSaeed Oh, okay, I'll look into it .. Thanks for detailed answer ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:13






  • 1




    $begingroup$
    @MagedSaeed I'm just getting into number theory ..
    $endgroup$
    – user626177
    Dec 13 '18 at 21:13








1




1




$begingroup$
That's what I was looking for, thank you!
$endgroup$
– user626177
Dec 13 '18 at 20:40




$begingroup$
That's what I was looking for, thank you!
$endgroup$
– user626177
Dec 13 '18 at 20:40




1




1




$begingroup$
@BillDubuque Yeah, I see how to do it without euclid
$endgroup$
– user626177
Dec 13 '18 at 20:54




$begingroup$
@BillDubuque Yeah, I see how to do it without euclid
$endgroup$
– user626177
Dec 13 '18 at 20:54




1




1




$begingroup$
@MagedSaeed Kinda off topic, but can this be used effectively for higher exponents than $1$ ? Polynomials is what I'm referring to. Just looking for yes or no answer, I'll work it out why ..
$endgroup$
– user626177
Dec 13 '18 at 21:04






$begingroup$
@MagedSaeed Kinda off topic, but can this be used effectively for higher exponents than $1$ ? Polynomials is what I'm referring to. Just looking for yes or no answer, I'll work it out why ..
$endgroup$
– user626177
Dec 13 '18 at 21:04






1




1




$begingroup$
@MagedSaeed Oh, okay, I'll look into it .. Thanks for detailed answer ..
$endgroup$
– user626177
Dec 13 '18 at 21:13




$begingroup$
@MagedSaeed Oh, okay, I'll look into it .. Thanks for detailed answer ..
$endgroup$
– user626177
Dec 13 '18 at 21:13




1




1




$begingroup$
@MagedSaeed I'm just getting into number theory ..
$endgroup$
– user626177
Dec 13 '18 at 21:13




$begingroup$
@MagedSaeed I'm just getting into number theory ..
$endgroup$
– user626177
Dec 13 '18 at 21:13











0












$begingroup$


In general, for $a,b,c,d
inBbb N$
, the following statements are equivalent:
$(i)$ there are integers $x,y$ s.t. $x(an+b)+y(cn+d)=1$ for all $nin Bbb N$;
$(ii)$ $ad-bc$ divides $gcd(a,c)$;
$(iii)$ $|ad-bc| =gcd(a,c)$.

Note also that any of the statements $(i)$, $(ii)$, and $(iii)$ implies that
$(iv)$ the rational number $frac{an+b}{cn+d}$ is in the lowest form for all $nin Bbb N$.




Obviously $(ii)iff (iii)$ because $gcd(a,c)$ always divide $ad-bc$. In the case $ad-bcmid gcd(a,c)$, we can take $x=-frac{c}{ad-bc}$ and $y=frac{a}{ad-bc}$. So $(ii)implies (i)$. We now prove that $(i)implies (ii)$.



Suppose that such $x$ and $y$ exist. Then,
$$ax+cy=0wedge bx+dy=1.$$
That is, $(x,y)$ is an integer solution to
$$begin{pmatrix}a&c\b&dend{pmatrix}begin{pmatrix}x\yend{pmatrix}=begin{pmatrix}0\1end{pmatrix}.$$
Observe that the determinant $ad-bc$ of $begin{pmatrix}a&c\b&dend{pmatrix}$ cannot be $0$ (otherwise $(a,b)$ and $(c,d)$ are proportional, and so $an+b$ and $cn+d$ are also proportional). That is, the matrix $begin{pmatrix}a&b\c&dend{pmatrix}$ is invertible and
$$begin{pmatrix}x\yend{pmatrix}=begin{pmatrix}a&c\b&dend{pmatrix}^{-1}begin{pmatrix}0\1end{pmatrix}=frac{1}{ad-bc}begin{pmatrix}d&-c\-b&aend{pmatrix}begin{pmatrix}0\1end{pmatrix}.$$
So $(x,y)=frac{1}{ad-bc}(-c,a)$. That is, $ad-bcmid c$ and $ad-bcmid a$. So $ad-bcmid gcd(a,c)$.





In your example, $a=4$, $b=7$, $c=3$, and $d=5$. So, $ad-bc=-1 mid gcd(a,c)$, and we can take $x=-frac{c}{ad-bc}=3$ and $y=frac{a}{ad-bc}=-4$.



I should like to mention that $(iv)$ is not equivalent to any of the statements $(i)$, $(ii)$, and $(iii)$. The rational numbers of the form $frac{2n+1}{2n+3}$ is reduced for any $nin Bbb N$, but it does not meet $(i)$, $(ii)$, or $(iii)$ (i.e., $(a,b,c,d)=(2,1,2,3)$, so $gcd(a,c)=2$, but $ad-bc=4nmidgcd(a,c)$). However, $(iv)$ is equivalent to the condition that for any prime divisor $p$ of $ad-bc$, there does not exist $ninBbb N$ such that $p$ divides both $an+b$ and $cn+d$.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    Never studied linear algebra, but I guess I can use this as a shortcut without knowing why it's working ..
    $endgroup$
    – user626177
    Dec 13 '18 at 20:52










  • $begingroup$
    Why do you assume that the same $x$ and $y$ work for all $n,,$ i.e. that they don't depend on $n$?
    $endgroup$
    – Bill Dubuque
    Dec 14 '18 at 3:36


















0












$begingroup$


In general, for $a,b,c,d
inBbb N$
, the following statements are equivalent:
$(i)$ there are integers $x,y$ s.t. $x(an+b)+y(cn+d)=1$ for all $nin Bbb N$;
$(ii)$ $ad-bc$ divides $gcd(a,c)$;
$(iii)$ $|ad-bc| =gcd(a,c)$.

Note also that any of the statements $(i)$, $(ii)$, and $(iii)$ implies that
$(iv)$ the rational number $frac{an+b}{cn+d}$ is in the lowest form for all $nin Bbb N$.




Obviously $(ii)iff (iii)$ because $gcd(a,c)$ always divide $ad-bc$. In the case $ad-bcmid gcd(a,c)$, we can take $x=-frac{c}{ad-bc}$ and $y=frac{a}{ad-bc}$. So $(ii)implies (i)$. We now prove that $(i)implies (ii)$.



Suppose that such $x$ and $y$ exist. Then,
$$ax+cy=0wedge bx+dy=1.$$
That is, $(x,y)$ is an integer solution to
$$begin{pmatrix}a&c\b&dend{pmatrix}begin{pmatrix}x\yend{pmatrix}=begin{pmatrix}0\1end{pmatrix}.$$
Observe that the determinant $ad-bc$ of $begin{pmatrix}a&c\b&dend{pmatrix}$ cannot be $0$ (otherwise $(a,b)$ and $(c,d)$ are proportional, and so $an+b$ and $cn+d$ are also proportional). That is, the matrix $begin{pmatrix}a&b\c&dend{pmatrix}$ is invertible and
$$begin{pmatrix}x\yend{pmatrix}=begin{pmatrix}a&c\b&dend{pmatrix}^{-1}begin{pmatrix}0\1end{pmatrix}=frac{1}{ad-bc}begin{pmatrix}d&-c\-b&aend{pmatrix}begin{pmatrix}0\1end{pmatrix}.$$
So $(x,y)=frac{1}{ad-bc}(-c,a)$. That is, $ad-bcmid c$ and $ad-bcmid a$. So $ad-bcmid gcd(a,c)$.





In your example, $a=4$, $b=7$, $c=3$, and $d=5$. So, $ad-bc=-1 mid gcd(a,c)$, and we can take $x=-frac{c}{ad-bc}=3$ and $y=frac{a}{ad-bc}=-4$.



I should like to mention that $(iv)$ is not equivalent to any of the statements $(i)$, $(ii)$, and $(iii)$. The rational numbers of the form $frac{2n+1}{2n+3}$ is reduced for any $nin Bbb N$, but it does not meet $(i)$, $(ii)$, or $(iii)$ (i.e., $(a,b,c,d)=(2,1,2,3)$, so $gcd(a,c)=2$, but $ad-bc=4nmidgcd(a,c)$). However, $(iv)$ is equivalent to the condition that for any prime divisor $p$ of $ad-bc$, there does not exist $ninBbb N$ such that $p$ divides both $an+b$ and $cn+d$.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    Never studied linear algebra, but I guess I can use this as a shortcut without knowing why it's working ..
    $endgroup$
    – user626177
    Dec 13 '18 at 20:52










  • $begingroup$
    Why do you assume that the same $x$ and $y$ work for all $n,,$ i.e. that they don't depend on $n$?
    $endgroup$
    – Bill Dubuque
    Dec 14 '18 at 3:36
















0












0








0





$begingroup$


In general, for $a,b,c,d
inBbb N$
, the following statements are equivalent:
$(i)$ there are integers $x,y$ s.t. $x(an+b)+y(cn+d)=1$ for all $nin Bbb N$;
$(ii)$ $ad-bc$ divides $gcd(a,c)$;
$(iii)$ $|ad-bc| =gcd(a,c)$.

Note also that any of the statements $(i)$, $(ii)$, and $(iii)$ implies that
$(iv)$ the rational number $frac{an+b}{cn+d}$ is in the lowest form for all $nin Bbb N$.




Obviously $(ii)iff (iii)$ because $gcd(a,c)$ always divide $ad-bc$. In the case $ad-bcmid gcd(a,c)$, we can take $x=-frac{c}{ad-bc}$ and $y=frac{a}{ad-bc}$. So $(ii)implies (i)$. We now prove that $(i)implies (ii)$.



Suppose that such $x$ and $y$ exist. Then,
$$ax+cy=0wedge bx+dy=1.$$
That is, $(x,y)$ is an integer solution to
$$begin{pmatrix}a&c\b&dend{pmatrix}begin{pmatrix}x\yend{pmatrix}=begin{pmatrix}0\1end{pmatrix}.$$
Observe that the determinant $ad-bc$ of $begin{pmatrix}a&c\b&dend{pmatrix}$ cannot be $0$ (otherwise $(a,b)$ and $(c,d)$ are proportional, and so $an+b$ and $cn+d$ are also proportional). That is, the matrix $begin{pmatrix}a&b\c&dend{pmatrix}$ is invertible and
$$begin{pmatrix}x\yend{pmatrix}=begin{pmatrix}a&c\b&dend{pmatrix}^{-1}begin{pmatrix}0\1end{pmatrix}=frac{1}{ad-bc}begin{pmatrix}d&-c\-b&aend{pmatrix}begin{pmatrix}0\1end{pmatrix}.$$
So $(x,y)=frac{1}{ad-bc}(-c,a)$. That is, $ad-bcmid c$ and $ad-bcmid a$. So $ad-bcmid gcd(a,c)$.





In your example, $a=4$, $b=7$, $c=3$, and $d=5$. So, $ad-bc=-1 mid gcd(a,c)$, and we can take $x=-frac{c}{ad-bc}=3$ and $y=frac{a}{ad-bc}=-4$.



I should like to mention that $(iv)$ is not equivalent to any of the statements $(i)$, $(ii)$, and $(iii)$. The rational numbers of the form $frac{2n+1}{2n+3}$ is reduced for any $nin Bbb N$, but it does not meet $(i)$, $(ii)$, or $(iii)$ (i.e., $(a,b,c,d)=(2,1,2,3)$, so $gcd(a,c)=2$, but $ad-bc=4nmidgcd(a,c)$). However, $(iv)$ is equivalent to the condition that for any prime divisor $p$ of $ad-bc$, there does not exist $ninBbb N$ such that $p$ divides both $an+b$ and $cn+d$.






share|cite|improve this answer











$endgroup$




In general, for $a,b,c,d
inBbb N$
, the following statements are equivalent:
$(i)$ there are integers $x,y$ s.t. $x(an+b)+y(cn+d)=1$ for all $nin Bbb N$;
$(ii)$ $ad-bc$ divides $gcd(a,c)$;
$(iii)$ $|ad-bc| =gcd(a,c)$.

Note also that any of the statements $(i)$, $(ii)$, and $(iii)$ implies that
$(iv)$ the rational number $frac{an+b}{cn+d}$ is in the lowest form for all $nin Bbb N$.




Obviously $(ii)iff (iii)$ because $gcd(a,c)$ always divide $ad-bc$. In the case $ad-bcmid gcd(a,c)$, we can take $x=-frac{c}{ad-bc}$ and $y=frac{a}{ad-bc}$. So $(ii)implies (i)$. We now prove that $(i)implies (ii)$.



Suppose that such $x$ and $y$ exist. Then,
$$ax+cy=0wedge bx+dy=1.$$
That is, $(x,y)$ is an integer solution to
$$begin{pmatrix}a&c\b&dend{pmatrix}begin{pmatrix}x\yend{pmatrix}=begin{pmatrix}0\1end{pmatrix}.$$
Observe that the determinant $ad-bc$ of $begin{pmatrix}a&c\b&dend{pmatrix}$ cannot be $0$ (otherwise $(a,b)$ and $(c,d)$ are proportional, and so $an+b$ and $cn+d$ are also proportional). That is, the matrix $begin{pmatrix}a&b\c&dend{pmatrix}$ is invertible and
$$begin{pmatrix}x\yend{pmatrix}=begin{pmatrix}a&c\b&dend{pmatrix}^{-1}begin{pmatrix}0\1end{pmatrix}=frac{1}{ad-bc}begin{pmatrix}d&-c\-b&aend{pmatrix}begin{pmatrix}0\1end{pmatrix}.$$
So $(x,y)=frac{1}{ad-bc}(-c,a)$. That is, $ad-bcmid c$ and $ad-bcmid a$. So $ad-bcmid gcd(a,c)$.





In your example, $a=4$, $b=7$, $c=3$, and $d=5$. So, $ad-bc=-1 mid gcd(a,c)$, and we can take $x=-frac{c}{ad-bc}=3$ and $y=frac{a}{ad-bc}=-4$.



I should like to mention that $(iv)$ is not equivalent to any of the statements $(i)$, $(ii)$, and $(iii)$. The rational numbers of the form $frac{2n+1}{2n+3}$ is reduced for any $nin Bbb N$, but it does not meet $(i)$, $(ii)$, or $(iii)$ (i.e., $(a,b,c,d)=(2,1,2,3)$, so $gcd(a,c)=2$, but $ad-bc=4nmidgcd(a,c)$). However, $(iv)$ is equivalent to the condition that for any prime divisor $p$ of $ad-bc$, there does not exist $ninBbb N$ such that $p$ divides both $an+b$ and $cn+d$.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Dec 15 '18 at 18:24

























answered Dec 13 '18 at 20:41







user614671



















  • $begingroup$
    Never studied linear algebra, but I guess I can use this as a shortcut without knowing why it's working ..
    $endgroup$
    – user626177
    Dec 13 '18 at 20:52










  • $begingroup$
    Why do you assume that the same $x$ and $y$ work for all $n,,$ i.e. that they don't depend on $n$?
    $endgroup$
    – Bill Dubuque
    Dec 14 '18 at 3:36




















  • $begingroup$
    Never studied linear algebra, but I guess I can use this as a shortcut without knowing why it's working ..
    $endgroup$
    – user626177
    Dec 13 '18 at 20:52










  • $begingroup$
    Why do you assume that the same $x$ and $y$ work for all $n,,$ i.e. that they don't depend on $n$?
    $endgroup$
    – Bill Dubuque
    Dec 14 '18 at 3:36


















$begingroup$
Never studied linear algebra, but I guess I can use this as a shortcut without knowing why it's working ..
$endgroup$
– user626177
Dec 13 '18 at 20:52




$begingroup$
Never studied linear algebra, but I guess I can use this as a shortcut without knowing why it's working ..
$endgroup$
– user626177
Dec 13 '18 at 20:52












$begingroup$
Why do you assume that the same $x$ and $y$ work for all $n,,$ i.e. that they don't depend on $n$?
$endgroup$
– Bill Dubuque
Dec 14 '18 at 3:36






$begingroup$
Why do you assume that the same $x$ and $y$ work for all $n,,$ i.e. that they don't depend on $n$?
$endgroup$
– Bill Dubuque
Dec 14 '18 at 3:36




















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3038503%2fproving-fraction-is-irreducible%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Index of /

Tribalistas

Listed building