Number of solutions of a linear diophantine two-variable equation?
\[ax + by = c\]\(a,b,c\) are constants. How does one know the number of positive ordered pairs \((a,b)\)?
@mukushla I wish you were here ='(
for example, \(2a + 3b = 100\)
Please don't give me the answer... just explain
@Callisto :\
\[2a+3b=100\]\[2a=100-3b\]a is an integer. So, b must be even. Then, I count the numbers :\
From 1 - 10, there are 5. Then 11-20, 21-30.. But 100-3b ≥ 0 , so, b must be ≤ 33.333...
Oh yessssssssssssssssssssssssss!!!!!!!!!!!!!!!!
Actually \(b \le 33\) because it's an integer. Thanks!
:\ 33 is not included since it's not even
100-3b ≥ 0 why can't 'a' be negative ???
I want to know a more reasonable way to solve this question
positive ordered pairs
okk...
actually it's non-negative...hmm
what about 'a' ?
Where'd you learn that method? @Callisto
So the answer is 17?
100-3b ≥ 0 100 ≥ 3b b ≤ 33.333 a and b are required to be non-negative integers @ParthKohli No one taught me.. I just...think...Hmmm.. I don't know how to say it
It is!
I ran out of attempts before I could even post it. Dang
So I want to know a more formal/reasonable way to solve it!!
Me too =/
2a+3b=100 2a = 100-3b Take mod 2 . 2a mod 2=0 100-3b ≡ 0 mod 2(as 2a is always divisible by 2,2a mod 2=0) 3b ≡ 100 mod 2 3b ≡0 mod 2(100 mod 2=0) b≡1mod 2 ( because gcd(2,3)=1) b=2k+1 (if x≡y mod z, then x=mz+y) 2a+6k+3=100 2a=97-6k now since a and b must be positive, b>0---->k>-1/2 a>0---->k<97/6 so, k can take only integer values from 0 to 16--->17 values.
Another method, 3=2*1+1 2=1*1+1 1=1*1+0 so, gcd(3,2)=1 now doing the reverse process of this : 2+1(-1) = 1 2+(3-2)(-1) =1 2(1 + 1)+ 3(-1) = 1 2(2) + 3(-1) =1 2(200) + 3(-100) =100 looks like 2a+3b = 100 ? so, a =200 +3n (n is integer) b= -100-2n as, a,b >0 you get n>-200/3 ----> n>=-66.67 and n<=-50 so total you have 17 values of 'n' from -50 to -66 learned these 2 methods on facebook today :P
Facebook? Where?? :|
@ParthKohli might also be interested....
Thanks!!!
@hartnn: Where did you ask the question? ._.
i didn't someone else did....i saw the solution in comments.
@ParthKohli WTF
@DLS :-)
Join our real-time social learning platform and learn together with your friends!