n*n mod 3

If N N is any positive integer which is not divisible by 3 what is the value of N × N m o d 3 N\times N \bmod 3 .


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.

3 solutions

Srinivasa Gopal
Nov 17, 2018

Let N = ( 3p + k) , here k is either 0 , 1 or 2. As the number N is not divisible by 3 k =1 or 2. So N N = 9p p + 6pk + k k ; As it can be easily seen the first two terms are divisible by 3, the last term is k k is either 1 or 4 both when divided by 3 will leave a reminder of 1.

Do you know the words between two *s will become italics?

For example, if you want to say 2 × 3 = 3 × 2 2\times3=3\times2 , it always becomes 2 3=3 2

X X - 2 years, 6 months ago
Chew-Seong Cheong
Nov 17, 2018

We can always express an integer indivisible by 3 as N = 3 n ± 1 N=3n\pm 1 , where n n is an integer. Then, we have:

N 2 ( 3 n ± 1 ) 2 ( 0 ± 1 ) 2 1 (mod 3) \begin{aligned} N^2 & \equiv (3n\pm 1)^2 \equiv (0\pm 1)^2 \equiv \boxed 1\text{ (mod 3)}\end{aligned}

Note that N N can be either positive or negative.

Blan Morrison
Nov 17, 2018

Due to the nature of numerical answer problems, you need to look at the phrase "what is _ mod 3." Since there can only be three answers, and the problem accepts a maximum of 3 answers, simply go through each of the possibilities: 0, 1, and 2. This problem would be much better as a multiple choice.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...