How many positive integers n satisfy 127 \equiv 7 \pmod{n}? n=1 is allowed.
$$127\equiv7\pmod{n}\\127=kn+7\\120=kn$$so essentially it boils down to how many divisors \(120\) has.
So, how many positive integers n satisfy 127=*7 (mod n)? n=1 is allowed. Where =* is the cungruent symble
oops congruent not cungruent
why kn?
to count the number of divisors observe we can factorize \(120=2^33^15^1\) hence we have \(4\times2\times2=16\) divisors (since each divisor must be of the form \(2^i3^j5^k\) for \(0\le i\le3,0\le j\le 1,0\le k\le 1\)) $$1\times120=120\\2\times60=120\\3\times40=120\\4\times30=120\\5\times24=120\\6\times20=120\\8\times15=120\\10\times12=120$$
@orple8 that is what congruence means; \(a\equiv b\pmod{n}\) means that \(a=kn+b\) for some integer \(k\)
oh right *slaps forehead* I'm stupid
so the answer would be 12?
no wait, 16. the answer would be 16. ooohhh! I see...thanks!
i made a few silly mistakes at first :-p like incorrect prime factorization
thanks so much! :)
closing? the question i mean XD
oh shoot actually maybe we don't need to ignore the first couple
I keep confusing myself :-p yeah we don't need to ignore the small ones, see:$$127\equiv7\equiv0\mod1\\127\equiv7\equiv1\mod2\\127\equiv7\equiv1\mod 3\\127\equiv7\equiv3\mod 4\\127\equiv7\equiv2\mod 5\\127\equiv7\equiv1\mod 6$$
\(16\) is correct though yep :-p
heehee :) that's kind of funny. no offense.
no offense taken! The only modular arithmetic I've done in school was in 6th grade so about 6 years ago now :-p
you're lucky! I didn't do modular arithmetic until 7th grade :D
Join our real-time social learning platform and learn together with your friends!