what is the largest natural number that can divides the numbers 1723, 2010, and 5741 and each remainder is 1 ?
write a computer program for that one
@ganeshie8 , @waterineyes any idea ? i need a way
factor
u wanna find a natural number that divides all with remainder 1?
yes divides that numbers and always gives remains 1 respectively
ok well
then just look at umm
1724, 2011, and 5742
factor these out and see largest divisor
wait 2011 is prime
that wud mean ur answer is 1... that cant be it lemme see
i was represent all number as : 1723 = nk + 1 2010 = np + 1 5741 = nr + 1 with n is divisor, and how to get the largest value of n ?
oh i know lower by 1?
gcd(1722, 2009, and 5740)?
287?
im not sure --"
ok look
umm
ifff
g=GCD of 1723,2010,5471, which leaves rem 1 then 1723/r = k+1/r 1723= rk+1 1723-1 =rk therefore r must divide 1722 evenly
similarily r will divide all the other numbers -1 evenly
so we simply need to find the GCD of the numbers shifter down by 1
shifted*
GCD(1722, 2009, and 5740)= 287
ok?
where it says g=GCD, it shud say r=GCD
yes, it is 287.i checked it by calculator... i think i can undestand now, just by using find the GCD thnks, @dan815
how you can be fast to get GCD(1722, 2009, and 5740)= 287 ?? by using a program comptr ?
umm
ya its not that hard to write a factoring program though especially for such small numbers
sieve of erathonesis
says there mut be a factor that is between 2 to sqrt(1722)
so u check primes between those numbers that divide one u divide then u are checking for 2 to floor sqrt(1722/p1)
primes between there
its pretty fast factoring system
or go to wolfram and type GCD(n1,n2,n3) :P
or just factor like a good boy
oh, ok... thanks again :) yea, i checked on wolfram: http://www.wolframalpha.com/input/?i=GCD+of+%281722%2C+2009%2C+and+5740%29&dataset=&equal=Submit i dont like do that like a good boy ;P
1722=2*861 =2*3*287
8+6+1 = 15 therefore 3 must factor
if have n1*100+n2*10+n3*1 then (n1*100+n2*10+n3*1)/3 = n1*(33+1/3)+n2(3+1/3)+n3/3 =33n1+3n2+n3/3+n1/3+n2/3 =33n1+3n2+ (n1+n2+n3)/3 therefore as long as n1+n2+n3 add upto a multiple of 3
u can see how this same pattern follows infinite digits
1723 = nk + 1 2010 = np + 1 5741 = nr + 1 n | (1723-1) n | (2010-1) n | (5741-1)
yes, i caught that @ganeshie8 . thanks :)
euclid algorithm is superior to prime factorization for finding gcd
what is that algoritm
2009 = 1722*1 + 287 1722 = 287*6 + 0 so gcd(2009,1722) = 287
:O coool
since 287 | 5743, we are done.
Join our real-time social learning platform and learn together with your friends!