Counting Solutions

How many integral n 2014 n \leq 2014 satisfy

n 2 2 ( m o d 8 ) n^2 \equiv 2 \pmod{8}


The answer is 0.

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.

4 solutions

Vinay Sipani
May 27, 2014

n 2 2 (mod 8) n^2 \equiv 2\text{ (mod 8)} = > 8 k + 2 = n 2 => 8k + 2 = n^2 where k is a non-negative integer.

(8k+2)=2(4k+1) is not a perfect square for any value of k.

Hence there are no solutions.

did the same way, indeed the easiest method

Kartik Sharma - 7 years ago

I did the same

Isaac Jiménez - 7 years ago
Michael Diao
May 27, 2014

It is impossible for the square of an integer to have a remainder of 2 2 when divided by 8 8 . Let us show this by examining all possible cases where k k is an even whole number 8 \le 8 , and n ( m o d 8 ) k n \pmod 8 \equiv k .


n ( m o d 8 ) 0 n \pmod 8 \equiv 0

0 2 = 0 0^2=0

0 ( m o d 8 ) 0 0 \pmod 8 \equiv 0

n 2 ( m o d 8 ) 0 n^2 \pmod 8 \equiv 0


n ( m o d 8 ) 2 n \pmod 8 \equiv 2

2 2 = 4 2^2=4

4 ( m o d 8 ) 4 4 \pmod 8 \equiv 4

n 2 ( m o d 8 ) 4 n^2 \pmod 8 \equiv 4


n ( m o d 8 ) 4 n \pmod 8 \equiv 4

4 2 = 16 4^2=16

16 ( m o d 8 ) 0 16 \pmod 8 \equiv 0

n 2 ( m o d 8 ) 0 n^2 \pmod 8 \equiv 0


n ( m o d 8 ) 6 n \pmod 8 \equiv 6

6 2 = 36 6^2=36

36 ( m o d 8 ) 4 36 \pmod 8 \equiv 4 .

n 2 ( m o d 8 ) 4 n^2 \pmod 8 \equiv 4


Since no cases show that n 2 ( m o d 8 ) 2 n^2 \pmod 8 \equiv 2 the answer must be 0 \boxed{0} .

There are lots of easy ways to do this problem, but I just felt like showing all cases :P

Wow that was long

Michael Diao - 7 years ago

Log in to reply

That's what she said. :D

Finn Hulse - 7 years ago

Log in to reply

(giggle) :D

Sharky Kesa - 7 years ago

@Finn Hulse wait how do you do the grey horizontal line again?

Michael Diao - 7 years ago

Log in to reply

Use -- like a bunch of times connected.

Finn Hulse - 7 years ago

Your LaTeX is annoying me. Also there is a much easier solution. :P

Finn Hulse - 7 years ago

Log in to reply

Your method may not be easier than Michael's. Although his solution looks long when written down, it takes about 7-8 seconds to do that in your head.

Mursalin Habib - 7 years ago

Log in to reply

I agree.

Also, by showing all possible cases, there is (ideologically) no way that you will be incorrect, assuming that you did not make any errors in your casework.

Michael Diao - 7 years ago

Yeah I know.

Finn Hulse - 7 years ago

So share it with us

Nathan Ramesh - 7 years ago
Raymond Lin
Jun 24, 2014

If n 2 2 ( m o d 8 ) n^2 \equiv 2 \: (mod \: 8) , then n n must be even, since odd n n would yield an odd m o d 8 mod \: 8 . An even n n would be of the form 2 k 2k , where k k is an integer. Then n 2 n^2 would be 4 k 2 4k^2 , and it would be 0 m o d 4 0 \: mod \: 4 , so it would be either 0 m o d 8 0 \: mod \:8 or 4 m o d 8 4 \: mod \: 8 . Since n 2 n^2 cannot be 2 m o d 8 2 \: mod \: 8 for either even or odd integers, we conclude that the answer is 0 \fbox 0 .

Bill Bell
Jul 10, 2014

n 2 ( m o d 8 ) n^{2} \left( \mod 8 \right) generates the series 1, 4, 1, 0, 1, 4, 1, 0, ... What more need be said?

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...