Given coprime $a,b$ and $n\in\Bbb N$, is there a simple criterion to find if there is no positive integer solution to $$ax+by=n?$$
2025-01-13 06:26:05.1736749565
Positive solutions extended euclid algorithm
1.1k Views Asked by user257494 https://math.techqa.club/user/user257494/detail At
1
There are 1 best solutions below
Related Questions in NUMBER-THEORY
- Page 99 of Hindry's Arithmetics, follows from exact sequence that $\text{N}(IJ) = \text{N}(J)\text{card}(J/IJ)$?
- How do I solve this over the integers
- How many ways to write a number $n$ as the product of natural numbers $\geq 2$?
- Representing integers as difference of semi-primes
- If $f,g$ are non-zero polynomials and $f$ divides $g$, then $\partial f \leq \partial g$.
- Conjugacy Class in Galois Representations
- Understanding Quadratic Residue Modulo n Structure
- Properties of the Gamma function
- Matrix of quadratic form (in Serre's general notion)?
- Find all pairs of positive integers $(n,k)$
Related Questions in LINEAR-DIOPHANTINE-EQUATIONS
- Finding all solutions to $32x + 5y= 1$.
- Solve in integers the equation $2x+3y = 5$
- How to solve system of linear congruences without using inverse integers?
- Positive solutions extended euclid algorithm
- How to show a certain integer solution does not exist for a system of linear equations?
- Which integers $a, b, c$ satisfy the equation $a \sqrt 2 − b = c \sqrt5$?
- Prove by induction that $7a + 10b$ can represent all integers $n \ge 54$
- Contradiction in Frobenius coin problem
- Show relations are Diophantine
- Number of integral solutions to $y_1 + y_2 + y_3 + y_4 =30$ with $y_i \ge 2$
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Refuting the Anti-Cantor Cranks
- Find $E[XY|Y+Z=1 ]$
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- What are the Implications of having VΩ as a model for a theory?
- How do we know that the number $1$ is not equal to the number $-1$?
- Defining a Galois Field based on primitive element versus polynomial?
- Is computer science a branch of mathematics?
- Can't find the relationship between two columns of numbers. Please Help
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- A community project: prove (or disprove) that $\sum_{n\geq 1}\frac{\sin(2^n)}{n}$ is convergent
- Alternative way of expressing a quantied statement with "Some"
Popular # Hahtags
real-analysis
calculus
linear-algebra
probability
abstract-algebra
integration
sequences-and-series
combinatorics
general-topology
matrices
functional-analysis
complex-analysis
geometry
group-theory
algebra-precalculus
probability-theory
ordinary-differential-equations
limits
analysis
number-theory
measure-theory
elementary-number-theory
statistics
multivariable-calculus
functions
derivatives
discrete-mathematics
differential-geometry
inequality
trigonometry
Popular Questions
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- How to find mean and median from histogram
- Difference between "≈", "≃", and "≅"
- Easy way of memorizing values of sine, cosine, and tangent
- How to calculate the intersection of two planes?
- What does "∈" mean?
- If you roll a fair six sided die twice, what's the probability that you get the same number both times?
- Probability of getting exactly 2 heads in 3 coins tossed with order not important?
- Fourier transform for dummies
- Limit of $(1+ x/n)^n$ when $n$ tends to infinity
If $\gcd(a,b)=1$, by the extended euclidean algorithm there is for sure a solution $(x_0,y_0)$ of $ax+by=1$, hence an infinite number of solutions, given by $(x_0-kb,y_0+ka)$ for any $k\in\mathbb{Z}$.
That gives that $(nx_0-nkb,ny_0+nka)$ is an integer solution of $ax+by=n$.
However, a non-negative solution is granted to exist only if $\color{red}{n\geq (a-1)(b-1)}$. I think that is pretty well-known. If we take $A=\{0,a,2a,\ldots\}$ and $B=\{0,b,2b,\ldots\}$, we have that $ \left|\{1,ab-a-b\}\cap(A+B)\right|$ is the number of lattice points in a triangle, hence about half the integers in the range $[1,ab-a-b]$ cannot be represented as a linear combination of $a$ and $b$ with non-negative integer coefficients.