Proving 12 divides n^2-1 when n^2 is odd and not divisible by 3

  • Thread starter Thread starter kreil
  • Start date Start date
  • Tags Tags
    Divisibility
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
21 replies · 3K views
Science Advisor
Insights Author
Messages
665
Reaction score
68

Homework Statement


Suppose that [itex]n^2[/itex] is odd and that 3 does not divide [itex]n^2[/itex]. Show that [itex]12|(n^2-1)[/itex]


Homework Equations


none


The Attempt at a Solution


Well I know that since [itex]n^2[/itex] is odd, [itex]n^2-1[/itex] is even. I'm not sure what the next step would be.
 
Physics news on Phys.org
hmm i did some more thinking on this. Please let me know if you think this is correct:

- since [itex]n^2[/itex] is odd, [itex]n^2-1[/itex] is an even number and [itex]2|n^2-1[/itex]

- [itex]n^2[/itex] is not prime since it has at least 3 divisors: {1, n, [itex]n^2[/itex]}

- if 3 does not divide [itex]n^2[/itex], then the remainder of this division must be either 1 or 2 (a remainder of 3 implies that 3 does divide [itex]n^2[/itex]). However, the remainder cannot be 2 or else [itex]n^2[/itex] would be prime, therefore the remainder must be 1.

- this implies 3|[itex]n^2-1[/itex] evenly, since the -1 cancels with the remainder on division with [itex]n^2[/itex].

Since 2|[itex]n^2-1[/itex], 3|[itex]n^2-1[/itex] and [itex]12=2^2 3^1[/itex], it follows that 12|[itex]n^2-1[/itex].
 
Hi kreil! :smile:
kreil said:
Suppose that [itex]n^2[/itex] is odd and that 3 does not divide [itex]n^2[/itex]. Show that [itex]12|(n^2-1)[/itex]

kreil said:
- if 3 does not divide [itex]n^2[/itex], then the remainder of this division must be either 1 or 2

forget n2 :rolleyes:

… what is the remainder if you divide n by 2 or 3? :wink:
 
n is odd

so 2 divides into n with r=1

3 divides into n with r=2 since r=1 implies n is even and r=0 or 3 implies 3 divides [itex]n^2[/itex]soo does this mean that 3 divides into [itex]n^2[/itex] with remainder [itex]r^2[/itex] (i.e. r=1)?
 
kreil said:
3 divides into n with r=2 since r=1 implies n is even

No it doesn't …

what about 7? :wink:​
 
kreil said:
oops, so 3|n with r=1 or r=2

that's better! :smile:

now you have the possible remainders for 2 and 3 …

so … ? :wink:
 
so if 3|n with r=1 or r=2, then 3|[itex]n^2[/itex] with r=1 or r=4 and since if r=4 3|4 with r=1, 3|[itex]n^2[/itex] with r=1

is that correct logic?
 
kreil said:
so if 3|n with r=1 or r=2, then 3|[itex]n^2[/itex] with r=1 or r=4 and since if r=4 3|4 with r=1, 3|[itex]n^2[/itex] with r=1

is that correct logic?

wot's incorrect logic? :confused:

anyway, how can 3 divide anything with r = 4??
 
tiny-tim said:
wot's incorrect logic? :confused:

anyway, how can 3 divide anything with r = 4??

haha, this doesn't tell me very much about whether what i wrote was right or not...

is it true that if 3|n with remainder r, that 3|[itex]n^2[/itex] with remainder [itex]r^2[/itex]??
 
i now know that this problem reduces to the problem of showing that 3|[itex]n^2[/itex] with r=1, i just don't understand how to connect division of n by 2 and 3 to this..
 
just got up :zzz: …

what are the possible remainders on dividing by 6? :smile:
 
kreil said:
because of the condition 0<r<6 for the equation n = 6b + r for some b, r can be 1,2,3,4,5.

uhh? :confused: but n2 is odd and 3 does not divide n2.
 
tiny tim is pointing you at the Chinese remainder theorem.


But let's try a different way.

n is odd, so n=2m+1 for some m. Now what divides n^2-1?

n is not divisible by 3, so either n=3r+1 or 3r+2. In either case, what can you show divides n^2-1?

Equivalently, n^2-1 is congruent to what mod what and what? (insert useful things instead of 'what' in that sentence.)
 
matt grime said:
tiny tim is pointing you at the Chinese remainder theorem.But let's try a different way.

n is odd, so n=2m+1 for some m. Now what divides n^2-1?

[itex]n^2=(2m+1)(2m+1)=4m^2+4m+1 \implies n^2-1=4(m^2+m)[/itex] for some m, and 4|[itex]n^2-1[/itex]

n is not divisible by 3, so either n=3r+1 or 3r+2. In either case, what can you show divides n^2-1?

[itex]n^2=9r^2+6r+1[/itex]

or [itex]n^2=9r^2+6r+4[/itex]

so [itex]n^2-1=9r^2+6r=3(3r^2+2r)[/itex]

or [itex]n^2-1=9r^2+6r+3=3(3r^2+2r+1)[/itex]

and in both cases 3|[itex]n^2-1[/itex]

Equivalently, n^2-1 is congruent to what mod what and what? (insert useful things instead of 'what' in that sentence.)

so [tex]n^2-1=(3r^2+2r)(mod 3)[/tex] and [tex]n^2-1=(3r^2+2r+1)(mod 3)[/tex]??
 
You have correctly shown that 3 and 4 divide n^2 - 1. So what does that mean? I don't understand what you're attempting to say in your last line, not least because it says that 0=1.