Improving Gaps in Primes Proof to Include Powers of Primes

Find all positive integer solutions to the equation a!+b=pka!+b=p^{k}, with 1<ba1<b≤a and pp prime.

#NumberTheory

Note by Anthony Kirckof
5 years, 4 months ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

Let a!+b=pka!+b=p^{k} for some integers 1<ba1<b≤a and pp prime. Since ba,ba!b≤a, b|a!, and so ba!+b=pkb|a!+b= p^{k}. Thus, b=pmb=p^{m} for some m<km<k. If m>1m>1, then p,p2,,pm<ap,p^{2},⋯,p^{m}<a, and so pm+(m1)++1a!=pkpm=pm(pkm1)p^{m+(m-1)+⋯+1}|a!=p^{k}-p^{m}=p^{m}(p^{k-m}-1), and p(m1)+(m2)++1pkm1p^{(m-1)+(m-2)+⋯+1}|p^{k-m}-1. This implies that pkm1(modp)p^{k-m} \equiv 1 \pmod{p}. But this only works if pkm=1p^{k-m}=1, or k=mk=m, a contradiction.

So we now have a!+p=pka!+p=p^{k}. Let’s assume that 2pa2p≤a. Then p,2pap,2p≤a, therefore p2a!p^{2}|a!. But then p2pka!=pp^{2}|p^{k}-a!=p, a contradiction. So pa<2p.p≤a<2p. Now working with our equation, we get:

a!+p=pka!+p=p^{k}

(p1)!(p+1)(a1)a+1=pk1(p-1)!(p+1)⋯(a-1)a+1=p^{k-1}

(p2)!(p+1)(a1)a=pk2+pk3++p+1.(p-2)!(p+1)⋯(a-1)a=p^{k-2}+p^{k-3}+⋯+p+1.

From here on, let’s assume that (p1)>4(p-1)>4. Then we know that (p2)!0(mod(p1))(p-2)! \equiv 0 \pmod{(p-1)}. We also have pr1(mod(p1))p^r \equiv 1 \pmod{(p-1)} for all nonnegative rr. Applying these,

01+1++1+1=k1(mod(p1)).0 \equiv 1+1+⋯+1+1=k-1 \pmod{(p-1)}.

So (k1)=n(p1)(k-1)=n(p-1), or k=n(p1)+1k=n(p-1)+1 for some integer nn. We have a!+p=pn(p1)+1a!+p=p^{n(p-1)+1}. Since a<2pa<2p, we can write:

a!(2p1)!=[(p(p1))(p+(p1))][(p2)(p+2)][(p1)(p+1)]pa!≤(2p-1)!=[(p-(p-1))(p+(p-1))]⋯[(p-2)(p+2)][(p-1)(p+1)]p

a![p2(p1)2][p2(p2)2][p222][p212]pa!≤[p^2-(p-1)^2][p^2-(p-2)^2]⋯[p^2-2^2 ][p^2-1^2]p

a!<(p2)(p2)(p2)(p21)pa!<(p^2)(p^2)⋯(p^2)(p^2-1)p

a!<(p2)p2(p21)pa!<(p^2)^{p-2}(p^2-1)p

a!<p2(p2)+1(p21).a!<p^{2(p-2)+1} (p^2-1).

And so:

pn(p1)+1=a!+p<p2(p2)+1(p21)+p=p2(p1)+1p2p3+p<p2(p1)+1.p^{n(p-1)+1}=a!+p<p^{2(p-2)+1} (p^2-1)+p=p^{2(p-1)+1}-p^{2p-3}+p<p^{2(p-1)+1}.

Since p>4p>4, we thus have n(p1)+1<2(p1)+1n(p-1)+1<2(p-1)+1, or n<2n<2. Clearly, nn must be nonnegative. If n=0n=0, then k=1k=1, which is a contradiction. So n=1n=1 and a!+p=ppa!+p=p^p.

Now let p1=2cxp-1=2^{c}x and p+1=2dyp+1=2^{d}y, with xx and yy odd. Note either that cc or dd, but not both, must equal 1. Furthermore, let P2(e)P_2(e) denote the power of 2 in the prime factorization of some integer ee. For example, by our definitions, P2(p1)=cP_2(p-1)=c and P2(p+1)=dP_2(p+1)=d. Note that if we can write ee out as a product e1e2eie_1\cdot e_2\cdot \cdot \cdot e_i, then we can write P2(e)=P2(e1e2ei)=P2(e1)+P2(e2)++P2(ei)P_2(e)=P_2(e_1\cdot e_2⋯e_i)=P_2(e_1)+P_2(e_2)+⋯+P_2(e_i).

Case 1: c=1c=1. We then have:

a!=ppp=p(pp11)=p(p2x1)=p(px1)(px+1)a!=p^p-p=p(p^{p-1}-1)=p(p^{2x}-1)=p(p^{x}-1)(p^{x}+1)

a!=p(p1)(px1++p2+p+1)(p+1)(px1+p2p+1)a!=p(p-1)(p^{x-1}+⋯+p^2+p+1)(p+1)(p^{x-1}-⋯+p^2-p+1)

P2(a!)=0+1+0+d+0P_2(a!)=0+1 + 0 + d + 0

P2(a!)=d+1P_2(a!)=d+1

Case 2: d=1d=1. We then have:

a!=ppp=p(pp11)=p(p2cx1)a!=p^p-p=p(p^{p-1}-1)=p(p^{2^cx}-1)

a!=p(px1)(px+1)(p2x+1)(p22x+1)(p2c1x+1)a!=p(p^x-1)(p^x+1)(p^{2x}+1)(p^{2^2x}+1)⋯(p^{2^{c-1}x}+1)

P2(a!)=0+c+1+1+1++1P_2(a!)=0+c + 1 + 1 + 1 + ⋯ + 1

P2(a!)=2cP_2(a!)=2c

To generalize, we can say that P2(a!)=c(d+1)P_2(a!)=c(d+1) to cover both of these cases. We now directly give a bound for P2(a!)P_2(a!):

P2(a!)=a/2+a/22++a/2z,P_2(a!)=⌊a/2⌋+⌊a/2^2⌋+⋯+⌊a/2^z⌋,

where zz is such that 2za<2z+12^z≤a<2^{z+1}. Since a2za≥2^z,

P2(a!)2z1+2z2++1=2z1.P_2(a!)≥2^{z-1}+2^{z-2}+⋯+1=2^z-1.

Moving on, we have:

2cx=p1<a<2z+12^cx=p-1<a<2^{z+1}

2c11<2c1x1<2z1P2(a!)=c(d+1)2^{c-1}-1<2^{c-1}x-1<2^z-1≤P_2(a!)=c(d+1)

2c11<c(d+1)2^{c-1}-1<c(d+1).

Also,

2dy=p+1a+1<2z+1+1<2z+1+22^dy=p+1≤a+1<2^{z+1}+1<2^{z+1}+2

2d12<2d1y2<2z1P2(a!)=c(d+1)2^{d-1}-2<2^{d-1}y-2<2^z-1≤P_2(a!)=c(d+1)

2d12<c(d+1)2^{d-1}-2<c(d+1).

In the case where c=1c=1, we use the second result here, and simplify: 2d13<d2^{d-1}-3<d. The only dd for which this equation holds are d=1,2,3d=1,2,3. Once again, we can’t have d=1d=1, so here, d=2d=2 or 33. Likewise, in the case where d=1d=1, using the first result and simplifying, we get 2c11<2c2^{c-1}-1<2c. In this case, omitting the solution of c=1c=1, we must have c=2,3c=2, 3 or 44. Since c4c≤4 and d3d≤3, but one of c,dc,d is 1, we have P2(a!)=c(d+1)8P_2(a!)=c(d+1)≤8. But then note that P2(12!)=10P_2(12!)=10, so we must then have a11a≤11. But then pa11p≤a≤11, and p=7,11p=7,11 are the only possibilities. But a!=777a!=7^7-7 and a!=111111a!=11^{11}-11 have no solutions for aa.

Our original assumption that (p1)>4(p-1)>4 must then be false, so we consider a!+p=pka!+p=p^k for p=2,3,5p=2,3,5 and pa<2p.p≤a<2p. If p=2p=2, then a=2a=2 or 33. We see that 2!+2=222!+2=2^2 and 3!+2=233!+2=2^3. Moving on, if p=3p=3, then a=3,4,a=3,4, or 55. From here, we get 3!+3=323!+3=3^2 and 4!+3=334!+3=3^3, but a=5a=5 has no solutions. If p=5p=5, then a=5,6,7,8,a=5,6,7,8, or 99. From these, we have 5!+5=535!+5=5^3 and no other solutions. Thus, the only solutions (a,p,k)(a,p,k) are (2,2,2),(3,2,3),(3,3,2),(4,3,3),(2,2,2), (3,2,3), (3,3,2), (4,3,3), and (5,5,3).(5,5,3).

Anthony Kirckof - 5 years, 4 months ago

Log in to reply

What a great solution! It captures so many useful ideas.

I likewise solved the problem by looking at powers of 22. However, most of my solution is bounding work, which would have been greatly simplified if I found k=pk=p. Something I have to keep in mind is p1k1p-1|k-1, which I have seen in another problem involving factorials, but forgot to consider here. Also that bound on a!a! to derive n=1n=1 takes a bit of intuition; it did not come to my mind though.

Xuming Liang - 5 years, 4 months ago

Log in to reply

Yeah that's a way I like to sometimes look at odd factorials. In general,

(2k1)!=[k+1][k1][k+2][k2][k+(k1)][k(k1)]k(2k-1)!=[k+1][k-1][k+2][k-2]\cdots [k+(k-1)][k-(k-1)]k

=[k212][k222][k2(k1)2]k=[k^2-1^2][k^2-2^2]\cdots [k^2-(k-1)^2]k

<(k2)k1k<(k^2)^{k-1}k

=k2k1=k^{2k-1}.

This result is also achievable through AM-GM, but this method allowed for the variation I needed to get the result I was looking for.

Anthony Kirckof - 5 years, 4 months ago
×

Problem Loading...

Note Loading...

Set Loading...