If p is a prime number greater than 1 2 3 4 5 , what is the remainder when p 2 is divided by 1 2 ?
This problem is posed by Sudhir G .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Can you take 5 minutes to consider how to present your solution? Is there a different modulo that would work better?
Log in to reply
Sorry, I do see that this solution was unclear.
Lemma: Primes greater than 3 are always 1 ( m o d 6 ) or 5 ( m o d 6 ) .
Proof The prime cannot be 0, 2, or 4 modulo 6, since then the number would be even. The prime cannot be 3 modulo 6 because the number would be divisible by 3. The other two residues, 1 and 6, are possible.
Let p = 6 n + r , such that r ≡ p ( m o d 6 ) . Then, p 2 = 3 6 n 2 + 1 2 n r + r 2 Taking this modulo 12, p 2 ≡ 3 6 n 2 + 1 2 n r + r 2 ≡ r 2 ( m o d 1 2 ) However, by the lemma, (r) is either 1 or 5. 1 2 ≡ 1 ( m o d 1 2 ) 5 2 ≡ 2 5 ≡ 1 ( m o d 1 2 ) Therefore, the remainder must be 1 .
Log in to reply
If you work modulo 6, that gives the result in a more direct manner, and avoids "Why did you use 12?".
I did not say that the solution was unclear.
Log in to reply
@Calvin Lin – Well, it seemed slightly unorganized when I read over it again.
Wouldn't the answer to "Why did you use 12?" be "Because the problem discusses remainder when divided by 12"?
can u plz tell me what mod is n how its related/useful to check whether a no. is prime?
your question sucks !! your question is not related to your answer ?? try to check off it there is an error ?
The remainder of a prime number modulo 12 can only be 1, 5, 7, or 11. If the remainder were even, the number would be even. If the remainder were divisible by 3, the number would be divisible by 3, so those are the only possible remainders.
1 2 ≡ 1 ( m o d 1 2 )
5 2 ≡ 1 ( m o d 1 2 )
7 2 ≡ 1 ( m o d 1 2 )
1 1 2 ≡ 1 ( m o d 1 2 )
So the answer is clearly 1
so every prime number that greater than 12 can be written in remainder by division form :12x+1 or 12x+5 or 12x+7 or 12x+11 for all interger x so given S= 12x+t if t = 1,5,7,11 so if t=1,5,7,11 and S^2 was written in remainder by division form it shows that every case shown remainder is 1 so every prime number p that greater than 12;the remainder of p^2 is 1 so the remainder of p^2 that p is greater than 12345 is 1 too Ans
3 is prime
5 is prime
7 is prime
Clearly all odd numbers are prime.
Log in to reply
You've completely misunderstood my argument. I'm not checking the specific cases of 1, 5, 7, and 11. I proved that every prime number must have a remainder of either 1, 5, 7, or 11 modulo 12, and used that to show that every prime number squared has a remainder of 1.
I assume that this is the part that you did not understand:
If n ≡ r ( m o d m ) , then k n ≡ k r ( m o d m ) for any constant k .
A special case of this is p 2 ≡ r 2 ( m o d 1 2 ) .
Since r ∈ { 1 , 5 , 7 , 1 1 } as I have already shown, r 2 ≡ 1 ( m o d 1 2 ) , and thus p 2 ≡ r 2 ≡ 1 ( m o d 1 2 ) .
Log in to reply
2 and 3 are also prime numbers , why did u neglect it
Log in to reply
@Aroune Aj – If q ≡ 2 ( m o d 1 2 ) , then 1 2 divides q − 2 . This implies that q − 2 is even, and thus q is even.
If q ≡ 3 ( m o d 1 2 ) , then 1 2 divides q − 3 . This implies that q − 3 is divisible by 3, and thus q is divisible by 3.
Of course, it is possible that q = 2 or q = 3 , and then it is okay for q to be even or divisible by 3, but we are looking at primes greater than 1 2 3 4 5 , as this is what the question asks for.
Then is 9 a prime number too?
9 is not prime
There's a pattern. If you look at n^2(mod 12) where n is a prime greater than 3, you will find that n^2(mod 12) is always 1. Therefore, the answer is 1.
Let p > 3 be a prime. Then it must be of the form 3 n ± 1 . So we have...
p 2 = ( 3 n ± 1 ) 2 = 9 n 2 ± 6 n + 1 ≡ 1 ( m o d 3 ) ⟹ 3 ∣ ( p 2 − 1 )
We consider another form 4 n ± 1 , and get...
p 2 = ( 4 n ± 1 ) 2 = 1 6 n 2 ± 8 n + 1 ≡ 1 ( m o d 4 ) ⟹ 4 ∣ ( p 2 − 1 )
Hence, 1 2 ∣ ( p 2 − 1 ) , implying...
p 2 ≡ 1 ( m o d 1 2 )
Sorry, my proof is wrong!!!
Log in to reply
its okey bro..... thats the way how we learn :)
Sorry, actually my proof is correct!!! :p
If p is a prime greater than 3,then p 2 − 1 is always divisible by 12,which is equivalent to stating that the division of p by 12 leaves a remainder of one.This can be proved in the following way(credits to someone on M.S.E)
p 2 − 1 = ( p + 1 ) ( p − 1 )
Since p is odd and greater than 3,p-1 and p+1 must be even.Hence,the p 2 − 1 is divisible by 4. Since there is always a multiple of 3 between any 3 consecutive numbers,exactly one of p, p-1 and p+1 must be divisible by 3.But since p is a prime number greater than 3,it can't be divisible by 3.Therefore exactly one of (p+1) and (p-1) must be divisible by 3.Hence (p+1)(p-1) is divisible by 12.Actually,it is divisibly by 24 as well.
any prime no. is of form ( 6n+1) or (6n-1) therefore, p^2 = 36 n^2 + 1 + 12n or 36 n^2 + 1 - 12n so dividing the above by 12 leaves a remainder 1 in all cases
This problem can be reduced using mods down numbers that are simpler to work with.
1
2
3
4
5
=
1
2
0
0
0
+
2
4
0
+
6
0
+
3
6
+
9
m
o
d
1
2
=
9
m
o
d
1
2
Now the question is: What is the remainder of
p
2
after being divided by 12, given that p is the first prime after 9.
Obviously, the first prime after 9 is 11, so p=11.
Some basic math:
p
=
1
1
m
o
d
1
2
p
2
=
1
2
1
m
o
d
1
2
p
2
=
1
m
o
d
1
2
So the final answer is
1
since that was the final value of 121 mod 12.
p = 1 1 cannot be used, since p > 1 2 3 4 5 . You cannot say that since 11 is a prime that is 11 mod 12, any number that is 11 mod 12 is prime. For example, 35 is not prime, but it is 11 mod 12.
Log in to reply
The question does not specify that the number is the next prime directly after 12345. Eventually, there will be a prime that is equivalent to 11 mod 12. I should have specified that in my solution.
prime no is always written in the form of 6k+1 or 6k-1 since 123457 is a prime no greater than 12345 can be written in the form of 6k-1 and gives rem 11 when divided by 12, again 11^2 divided by 12 gives 1 as correct answer
the next prime number greater than 12345 is 12347 raised to power of 2 then divided by 12 the remainder is 1
The numbers after 12345 is 12346 but dividable perfectly by 2
When 12347 is squared and divided by 12, the answer will give ..... .08 , and I take 1 as answer
Let n be the remainder. Therefore, p^2 = n ( mod 12 ). Therefore, p^2 = n (mod 3 ) and p^2 = n (mod 4). Then, by quadratic residues, we know that all squares are congruent to 0 or 1 mod 4. Now, since p is a prime greater than 12345, it´s uneven, therefore it can´t be congruent to 0 mod 4, so it must be congruent to 1 mod 4. Therefore n = 1, so the residue is 1.
1 2 3 4 5 ≡ 9 ( m o d 1 2 ) . A prime greater than 1 2 3 4 5 can be written as 1 2 3 4 5 + 2 k . 1 2 3 4 5 + 2 k ≡ 9 + 2 k ( m o d 1 2 ) . ( 1 2 3 4 5 + 2 k ) 2 ≡ ( 9 + 2 k ) 2 ( m o d 1 2 ) . 9 + 2 k can be written as 2 x − 1 . ( 2 x − 1 ) 2 = 4 x 2 − 4 x + 1 . Subtract 1 and you get 4 x 2 − 4 x = 4 x ( x − 1 ) . In this point, we will have a remainder of 1 unless you take an x equal to 2 + 3 m , for some integer m ≥ 0 . This, because 1 2 4 x ( x − 1 ) = 3 x ( x − 1 ) , and if x or x − 1 is divisible by 3 , then 4 x ( x − 1 ) is divisible by 1 2 , and then the remainder of 1 2 4 x 2 − 4 x + 1 is 1 . We can affirm that 1 is the answer, because we know the reminder will be 1 because we can put in x a lot of values, but not just that: you will always get a number ending, for example, in 7 , and although we can't precise the exact prime, we know that there are primes greater than 1 2 3 4 5 ending with 7 . Thus, the answer is 1 .
I wish I explained correctly...
your`s seem to be the better one than the provided others ..I liked it.
Step 1: You find the least prime no, greater than 12345 and that is 12373 Step 2: You square it -->(12373)^2 = 153091129 Step 3 : divide the result by 12 153091129, but first notice that 153091128/12 has no remainder, hence the remainder is 1.
Problem Loading...
Note Loading...
Set Loading...
If p is a prime number greater than 1 2 , it must leave a remainder of 1, 5, 7, or 11 when divided by 12. The remainder cannot be even, and it cannot be 3 or 9 since then the number would be divisible by 3. Whether p ≡ 1 , 5 , 7 , 1 1 ( m o d 1 2 ) , p 2 ≡ 1 ( m o d 1 2 ) . This is because 1 2 = 1 , 5 2 = 2 5 = 2 ⋅ 1 2 + 1 , 7 2 = 4 9 = 4 ⋅ 1 2 + 1 , and 1 1 2 = 1 2 1 = 1 0 ⋅ 1 2 + 1 .