11

For any $n \in \mathbb{N}$, find $\gcd(n!+1,(n+1)!+1)$. First come up with a conjecture, then prove it.

By testing some values, it seems like $\gcd(n!+1,(n+1)!+1) = 1$

I can simplify what's given to me to $\gcd(nn!, n!+1)=1$ but I can't find out how to get it into the form I want it. Can anybody look at what I'm doing and give me any guidance?

$\gcd(n!+1,(n+1)!+1) = 1 \implies \gcd(n!+1,(n+1)n!+1) = 1 \implies \gcd(n!+1,nn!+n!+1) = 1 \implies \gcd(nn!, n!+1) = 1$

  • I changed numerous instances of \mathrm{gcd} in this question to \gcd. It's a standard operator name. – Michael Hardy Apr 11 '12 at 02:42
  • Thanks for modifying my question to use \gcd and making me realize that command exists. That will help me in the future! Also, thanks to everybody who answered; you all have really helped me! – Brandon Amos Apr 11 '12 at 11:34
  • .....and just in case anyone wonders: I just posted 5\gcd(a,b) and 5\mathrm{gcd}(a,b) within a "displayed" $\TeX$ setting in the "answer" box below. Try it and you'll see that they don't both look the same! (One of them has proper spacing between "$5$" and "$\gcd$".) – Michael Hardy Apr 11 '12 at 21:00

5 Answers5

11

You don’t need to use induction; you just need to prove the statement in the title. Suppose that $p$ is a prime factor of $nn!$; can $p$ divide $n!+1$?

Brian M. Scott
  • 616,228
  • Primes aren't needed: if $\rm:n:|:k:$ then $\rm:nk,\ k+1:$ are coprime in any ring - see my answer. – Bill Dubuque Apr 11 '12 at 03:22
  • 10
    @Bill: I didn’t say that they were. I offered what I consider an easy approach to the problem. In general I write primarily for the questioner, not for possible future readers. – Brian M. Scott Apr 11 '12 at 03:27
9

Here is a proof that does not use induction but rather the key property of gcd: $(a,b) = (a-b,b) = (a-kb,b)$ for all $k$.

Take $a=nn!$, $b=n!+1$, $k=n$ and conclude that $(nn!, n!+1)=(nn!-n(n!+1),n!+1)=(-n,n!+1)=1$ since any divisor of $n$ is a divisor of $n!$.

lhf
  • 216,483
1

Hint $\ $ Put $\rm\,k = n!\ $ in: $\rm\,\ \color{#c00}{n\mid k}\,\Rightarrow\,(1+k,nk)= 1\ $ by $\rm\, (1\!-\!k)\:(1\!+\!k) + (\color{#c00}{k/n})\: nk = 1.\ \ $ QED

Generally, $ $ the above Bezout equation implies coprimality of $\rm\, 1+k\,\ $ and $\rm\,\ nk\,$ in every ring.


Alternatively, with $\rm\,m = 1+k,\,$ we can employ Euclid's Lemma $\rm(EL)$ as follows:

$$\rm\,n\mid k,\,(m,k) =1\,\Rightarrow (m,n) = 1\,\Rightarrow\,(m,nk)=1\ \ by\ \ EL$$ i.e. $\rm\, mod\ m\!:\ x\,$ is a unit (invertible) iff $\rm\,(x,m) = 1.$ Units are closed under products and divisors, i.e. they form a saturated monoid, so since $\rm\,k\,$ is a unit so is its divisor $\rm\,n\,$ and the product $\rm\,nk.$

Bill Dubuque
  • 272,048
1

Note that $$ (n-1)!\cdot \underline{n n!} - (n!-1)\underline{(n!+1)} = 1; $$ this Bézout's identity shows that the two underlined quantities must be relatively prime (anything that divides them both must divide the right-hand side). The related identity $$ (n-1)! \underline{((n+1)!+1)} - (n!+(n-1)!-1)\underline{(n!+1)} = 1 $$ similarly proves that the greatest common divisor of these two underlined terms equals 1.

Of course, discovering these identities in the first place is best done by using the Euclidean algorithm, as in lhf's answer.

Did
  • 279,727
Greg Martin
  • 78,820
  • This is precisely what I wrote 5 hours prior, except it explicitly replaces $\rm:k:$ by $\rm: n!:$ in my Bezout equation. Doing so decreases the generality of the proof, and obscures the key (unit group) structure. – Bill Dubuque Apr 11 '12 at 20:06
  • Well then, I won't claim priority. But some might find that my solution is more accessible to the OP than yours. – Greg Martin Apr 12 '12 at 06:51
  • My concern is not priority but, rather, pedagogy. I explicitly abstracted $n!$ to any integer $k$ divisible by $n$ in order to make clearer the innate governing multiplicative structure. To succeed in elementary number theory it is essential to learn how to recognize such structure. If students are encouraged to follow shortcuts circumventing such pedagogical routes then they may completely miss the key ideas, and never see the forest for the trees. – Bill Dubuque Apr 12 '12 at 14:15
-1

I dont know i am right or wrong but i can do this example in following way,\ Let $$\gcd(n\cdot n!,n!+1)=d$$ $$\therefore d\mid n\cdot n!\ ,\ d\mid n!+1$$ $$\Rightarrow d\mid n,\ d\mid n!,\ d\mid n!+1$$ $$ \Rightarrow d\mid n!+1-n!$$ Thus $d\mid 1\ \Rightarrow d=1.$

M Turgeon
  • 10,419
Kns
  • 3,165