Sudhir's division by 12

If p p is a prime number greater than 12345 12345 , what is the remainder when p 2 p^2 is divided by 12 12 ?

This problem is posed by Sudhir G .


The answer is 1.

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.

11 solutions

Daniel Chiu
Dec 8, 2013

If p p is a prime number greater than 12 12 , 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 , 11 ( m o d 12 ) p\equiv1,5,7,11\pmod{12} , p 2 1 ( m o d 12 ) p^2\equiv\boxed{1}\pmod{12} . This is because 1 2 = 1 1^2=1 , 5 2 = 25 = 2 12 + 1 5^2=25=2\cdot 12+1 , 7 2 = 49 = 4 12 + 1 7^2=49=4\cdot 12+1 , and 1 1 2 = 121 = 10 12 + 1 11^2=121=10\cdot 12+1 .

Can you take 5 minutes to consider how to present your solution? Is there a different modulo that would work better?

Calvin Lin Staff - 7 years, 6 months ago

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 ) 1\pmod 6 or 5 ( m o d 6 ) 5\pmod 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 p=6n+r , such that r p ( m o d 6 ) r\equiv p\pmod 6 . Then, p 2 = 36 n 2 + 12 n r + r 2 p^2=36n^2+12nr+r^2 Taking this modulo 12, p 2 36 n 2 + 12 n r + r 2 r 2 ( m o d 12 ) p^2\equiv 36n^2+12nr+r^2\equiv r^2\pmod{12} However, by the lemma, (r) is either 1 or 5. 1 2 1 ( m o d 12 ) 1^2\equiv 1\pmod{12} 5 2 25 1 ( m o d 12 ) 5^2\equiv 25\equiv 1\pmod{12} Therefore, the remainder must be 1 \boxed{1} .

Daniel Chiu - 7 years, 6 months ago

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.

Calvin Lin Staff - 7 years, 6 months ago

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"?

Daniel Chiu - 7 years, 6 months ago

can u plz tell me what mod is n how its related/useful to check whether a no. is prime?

Akbarali Surani - 7 years, 6 months ago

your question sucks !! your question is not related to your answer ?? try to check off it there is an error ?

Dave Estor - 7 years, 6 months ago

Log in to reply

I do not understand.

Daniel Chiu - 7 years, 6 months ago
Ben Frankel
Dec 15, 2013

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 12 ) 1^2 \equiv 1 \pmod{12}

5 2 1 ( m o d 12 ) 5^2 \equiv 1 \pmod{12}

7 2 1 ( m o d 12 ) 7^2 \equiv 1 \pmod{12}

1 1 2 1 ( m o d 12 ) 11^2 \equiv 1 \pmod{12}

So the answer is clearly 1 \fbox{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

Wachirawit Chaifongsree - 7 years, 1 month ago

3 is prime

5 is prime

7 is prime

Clearly all odd numbers are prime.

Sam Dreilinger - 7 years, 5 months ago

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 ) n \equiv r \pmod{m} , then k n k r ( m o d m ) kn \equiv kr \pmod{m} for any constant k k .

A special case of this is p 2 r 2 ( m o d 12 ) p^2 \equiv r^2 \pmod{12} .

Since r { 1 , 5 , 7 , 11 } r \in \left\{ {1, 5, 7, 11} \right\} as I have already shown, r 2 1 ( m o d 12 ) r^2 \equiv 1 \pmod{12} , and thus p 2 r 2 1 ( m o d 12 ) p^2 \equiv r^2 \equiv 1 \pmod{12} .

Ben Frankel - 7 years, 5 months ago

Log in to reply

2 and 3 are also prime numbers , why did u neglect it

Aroune AJ - 7 years, 4 months ago

Log in to reply

@Aroune Aj If q 2 ( m o d 12 ) q \equiv 2 \pmod{12} , then 12 12 divides q 2 q - 2 . This implies that q 2 q - 2 is even, and thus q q is even.

If q 3 ( m o d 12 ) q \equiv 3 \pmod{12} , then 12 12 divides q 3 q - 3 . This implies that q 3 q - 3 is divisible by 3, and thus q q is divisible by 3.

Of course, it is possible that q = 2 q = 2 or q = 3 q = 3 , and then it is okay for q q to be even or divisible by 3, but we are looking at primes greater than 12345 12345 , as this is what the question asks for.

Ben Frankel - 7 years, 4 months ago

Then is 9 a prime number too?

Saubhag Trasy - 7 years, 3 months ago

Log in to reply

no,because 9=3x3

Tam Jing Xuan - 7 years, 2 months ago

9 is not prime

Saqib Munir - 7 years, 4 months ago
Greg Wu
Dec 8, 2013

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.

Jubayer Nirjhor
Dec 15, 2013

Let p > 3 p>3 be a prime. Then it must be of the form 3 n ± 1 3n\pm 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 ) p^2=(3n\pm1)^2=9n^2\pm 6n +1\equiv 1 \pmod{3} ~~~~~~~~ \Longrightarrow ~~~~ 3\mid (p^2-1)

We consider another form 4 n ± 1 4n\pm 1 , and get...

p 2 = ( 4 n ± 1 ) 2 = 16 n 2 ± 8 n + 1 1 ( m o d 4 ) 4 ( p 2 1 ) p^2=(4n\pm 1)^2=16n^2\pm8n+1\equiv 1 \pmod{4}~~~~~~ \Longrightarrow ~~~~ 4\mid (p^2-1)

Hence, 12 ( p 2 1 ) 12\mid (p^2-1) , implying...

p 2 1 ( m o d 12 ) p^2\equiv\fbox{1}\pmod{12}

Sorry, my proof is wrong!!!

Jubayer Nirjhor - 7 years, 5 months ago

Log in to reply

its okey bro..... thats the way how we learn :)

Nurul Alam Pavel - 7 years, 5 months ago

Sorry, actually my proof is correct!!! :p

Jubayer Nirjhor - 7 years, 5 months ago

Log in to reply

thn i would like to repeat the same :)

Nurul Alam Pavel - 7 years, 5 months ago

If p is a prime greater than 3,then p 2 1 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 ) 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 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.

Rahul Saha - 7 years, 5 months ago
Vishal Jindal
Dec 16, 2013

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.
12345 = 12000 + 240 + 60 + 36 + 9 m o d 12 = 9 m o d 12 12345 = 12000 + 240+ 60 + 36 + 9 mod 12 = 9 mod 12
Now the question is: What is the remainder of p 2 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 = 11 m o d 12 p=11 mod 12
p 2 = 121 m o d 12 p^{2}= 121 mod 12
p 2 = 1 m o d 12 p^{2}= 1 mod 12
So the final answer is 1 \boxed{1} since that was the final value of 121 mod 12.







p = 11 p=11 cannot be used, since p > 12345 p>12345 . 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.

Daniel Chiu - 7 years, 6 months ago

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.

A Former Brilliant Member - 7 years, 6 months ago

Log in to reply

Remember to Write what you mean . We are not mind readers (yet).

Calvin Lin Staff - 7 years, 6 months ago

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

prateek sekhsaria - 7 years, 6 months ago
Fox To-ong
Dec 28, 2014

the next prime number greater than 12345 is 12347 raised to power of 2 then divided by 12 the remainder is 1

Fatin Shuhada
Mar 29, 2014

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

Andres Fabrega
Dec 15, 2013

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.

12345 9 ( m o d 12 ) 12345 \equiv 9 \pmod {12} . A prime greater than 12345 12345 can be written as 12345 + 2 k 12345 + 2k . 12345 + 2 k 9 + 2 k ( m o d 12 ) 12345 + 2k \equiv {9 + 2k} \pmod {12} . ( 12345 + 2 k ) 2 ( 9 + 2 k ) 2 ( m o d 12 ) (12345 + 2k)^2 \equiv {(9 + 2k)^2} \pmod {12} . 9 + 2 k 9 + 2k can be written as 2 x 1 2x - 1 . ( 2 x 1 ) 2 = 4 x 2 4 x + 1 (2x - 1)^2 = 4x^2 - 4x + 1 . Subtract 1 1 and you get 4 x 2 4 x = 4 x ( x 1 ) 4x^2 - 4x = 4x(x-1) . In this point, we will have a remainder of 1 1 unless you take an x x equal to 2 + 3 m 2 + 3m , for some integer m 0 m \geq 0 . This, because 4 x ( x 1 ) 12 = x ( x 1 ) 3 \frac {4x(x - 1)} {12} = \frac {x(x-1)} {3} , and if x x or x 1 x-1 is divisible by 3 3 , then 4 x ( x 1 ) 4x(x-1) is divisible by 12 12 , and then the remainder of 4 x 2 4 x + 1 12 \frac {4x^2 - 4x + 1} {12} is 1 1 . We can affirm that 1 1 is the answer, because we know the reminder will be 1 1 because we can put in x x a lot of values, but not just that: you will always get a number ending, for example, in 7 7 , and although we can't precise the exact prime, we know that there are primes greater than 12345 12345 ending with 7 7 . Thus, the answer is 1 \boxed {1} .

I wish I explained correctly...

your`s seem to be the better one than the provided others ..I liked it.

Chirayata Bhatttachharyya - 7 years, 5 months ago

Log in to reply

Thanks!

Diego E. Nazario Ojeda - 7 years, 5 months ago
Voke Ojuederhie
Dec 12, 2013

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.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...