Greatest common divisor | Relatively prime

Click For Summary

Discussion Overview

The discussion revolves around the claim that n! + 1 and (n+1)! + 1 are relatively prime. Participants explore various methods of proof, including mathematical induction and proof by contradiction, while addressing the challenges of modular arithmetic and the properties of prime numbers.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant proposes using mathematical induction to prove that n! + 1 and (n+1)! + 1 are relatively prime, starting with a base case.
  • Another participant suggests reducing the problem using modular arithmetic, although some express a lack of familiarity with this concept.
  • A proof by contradiction is proposed, where participants consider a prime number that divides both expressions, leading to a discussion on the implications of such a divisor.
  • Participants discuss how to express (n+1)! + 1 in terms of n! + 1, with varying levels of success and clarity.
  • There is a focus on the implications of divisibility and the conditions under which a contradiction might arise, particularly concerning prime factors and their properties.
  • Some participants question the validity of certain steps in the proof process, particularly regarding the assumptions made about divisibility and the nature of integers involved.
  • Hints are provided to guide participants towards a valid solution, including the use of the Euclidean algorithm to derive identities related to the problem.

Areas of Agreement / Disagreement

Participants express differing views on the best approach to proving the claim, with some favoring induction and others preferring contradiction. There is no consensus on a definitive proof method, and the discussion remains unresolved regarding the most effective strategy.

Contextual Notes

Some participants indicate limitations in their understanding of modular arithmetic and prime number theory, which may affect their ability to follow certain lines of reasoning. The discussion also highlights the complexity of the problem, with multiple approaches being explored without a clear resolution.

  • #31
kingwinner,

"Upon further review", your solution is correct and yes, the key was to express n as a linear combination of (n + 1)! + 1 and n! + 1.

Petek
 
Physics news on Phys.org
  • #32
Petek said:
kingwinner,

"Upon further review", your solution is correct and yes, the key was to express n as a linear combination of (n + 1)! + 1 and n! + 1.

Petek
Hrm. I think simply using the Euclidean algorithm (or a very slight adjustment) to compute the GCD works out to doing the same thing.
 
  • #33
Hurkyl said:
Hrm. I think simply using the Euclidean algorithm (or a very slight adjustment) to compute the GCD works out to doing the same thing.

See my post #23 in this thread.

Petek
 
  • #34
Petek said:
See my post #23 in this thread.

Petek
One never has to talk about divisibility or anything -- just finish computing the GCD with Euclidean's algorithm and get 1.
 
  • #35
Petek said:
kingwinner,

"Upon further review", your solution is correct and yes, the key was to express n as a linear combination of (n + 1)! + 1 and n! + 1.

Petek
Thanks for the confirmation. :)

Now I'm interested in the method of proof by contradiction about assuming d to be a PRIME (as you said originally).

The claim is n! + 1 and (n+1)! + 1 are relatively prime for ALL n E N.
So to use proof by contradiction, we should assume that
there exists SOME n E N such that n! + 1 and (n+1)! + 1 are not relatively prime.
i.e. Suppose that for SOME n E N, d is an integer greater than 1 that divides both n! + 1 and (n + 1)! +1
As shown above, this leads to a correct proof and I'm perfectly fine with it.

But why instead we can assume that d is a "prime" without any loss of generality? (i.e. why don't we have to check the case where d is NOT prime and show that it also leads to contradiction? Why is it sufficient to check only for the case where d is prime?)

Thanks!
 
  • #36
kingwinner said:
Why is it sufficient to check only for the case where d is prime?)
Because the general case can be reduced to this particular case. Do you see how?
 
  • #37
Hurkyl said:
One never has to talk about divisibility or anything -- just finish computing the GCD with Euclidean's algorithm and get 1.

Perfectly true, but the OP stated that he hadn't covered the Euclidean algorithm when working this problem.

Petek
 
  • #38
Hurkyl said:
Because the general case can be reduced to this particular case. Do you see how?
No.

Why can we assume that d is a "prime" without any loss of generality?
 
  • #39
kingwinner said:
No.

Why can we assume that d is a "prime" without any loss of generality?

If d is a prime, we're done. If d is not prime, then ... . (Do you know the "fundamental theorem of arithmetic"? If not, look it up on Wikipedia,)

Petek
 
  • #40
Petek said:
If d is a prime, we're done. If d is not prime, then ... . (Do you know the "fundamental theorem of arithmetic"? If not, look it up on Wikipedia,)

Petek

OK, I looked it up on Wikipedia and that theorem says that every integer greater than 1 can be uniquely factored into primes.

If we assumed that d is prime that divides both n! + 1 and (n + 1)! +1 and reached a contradiction, this means that no prime divides both n! + 1 and (n + 1)! +1.

But still, why does it follow that
"No prime divides both n! + 1 and (n + 1)! +1 => no integer greater than 1 divides both n! + 1 and (n + 1)! +1" ?

(sorry, I am very new to number theory and many things do not seem so obvious to me...)

Thanks for explaining!
 
  • #41
kingwinner said:
But still, why does it follow that
"No prime divides both n! + 1 and (n + 1)! +1 => no integer greater than 1 divides both n! + 1 and (n + 1)! +1" ?

Because if an integer does divide both, then either that integer is a prime, or it isn't, whcih means it's divisible by a prime, and so that prime divides both. :wink:
 
  • #42
Thanks, that makes sense.
 
  • #43
The claim is a statement of the form "... for all natural numbers n".

In this case, can we prove that n! + 1 and (n+1)! + 1 are relatively prime by mathematical induction?

When I see statements like this(about some claim is true for all natural numbers n), my first thought is to prove by mathematical induction, but maybe in this case it doesn't work?
 
  • #44
kingwinner said:
When I see statements like this(about some claim is true for all natural numbers n), my first thought is to prove by mathematical induction …

erm :redface: … it shouldn't be!

Always try to prove something simply and directly, first.

If you can't se a simple proof, then try induction.

In this case, I'd be surprised if there was a proof by induction, and I'd be amazed if it was simpler! :biggrin:
 
  • #45
kingwinner said:
Actually you are right. I don't know what I was thinking before.

d | (n!)n => d | n! or d | n
If d | n!, then d | n!
If d | n, then d | n!
So d | (n!)n => d | n! or d | n => d | n!

But we don't know what "n" is, so there does not seem to be any contradiction...?
If d > 1 how can it divide n! and n!+1 ?
 
  • #46
Only using properties of gcd, in two steps you get (n!+1,(n+1)!+1) = (n!+1,n), and by the Euclidean algorithm, n!+1 = n(n-1)! + 1, has remainder 1, hence coprime.
kingwinner, good luck with MAT315.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 24 ·
Replies
24
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
8
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K