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.
Markdown
Appears as
*italics* or _italics_
italics
**bold** or __bold__
bold
- bulleted - list
bulleted
list
1. numbered 2. list
numbered
list
Note: you must add a full line of space before and after lists for them to show up correctly
I haven't seen a full answer yet. Mine is kind of ugly but I think it works.
As in the previous solutions, reduce to the case where p∣(n2+n+1). Write pk=n2+n+1, so p−1=k(n−1). Solve for p to get p=k(n−1)+1. Plug in to get k2(n−1)+k=n2+n+1. Write as a quadratic in n: n2+(1−k2)n+(k2−k+1)=0.
Use the quadratic formula: n=21(k2−1±(k2−1)2−4(k2−k+1))=21(k2−1±(k2−3)2+4k−12).
If k=1 or k=2 then the quantity under the square root is negative. If k=3 then we get n=21(8±6)=1,7. The former solution is no good (p=1) but the latter solution yields (7,19). If k≥4 then the quantity inside the square root is greater than (k2−3)2. But since k2−k+1>0 for all k, the quantity under the square root is less than (k2−1)2. So the square root itself is strictly between k2−3 and k2−1.
So if we choose the minus sign for n, we get that n is strictly between 0 and 1, which is no good. If we choose the plus sign for n, we get that n is strictly between k2−2 and k2−1, which is also no good. So (7,19) is the only solution.
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:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
[EDITED]
n3=p2−p+1
⇒n3−1=p2−p
⇒(n−1)(n2+n+1)=p(p−1)
Case 1: p is a factor of (n−1).
Let pn−1=k;where k is a natural number
⇒n−1=pk
Now, p(n−1)(n2+n+1)=p−1
⇒k(n2+2+n−1)=p−1
⇒k(n2+2+pk)=p−1
⇒kn2+2k+pk2=p−1
⇒kn2+2k+1=p−pk2
kn2+2k+1=p(1−k2)
(kn2+2k+1)>0. So, (1−k2)>0 or −1<k<1. There exist no such value for k which satisfies the equation as k is a natural number.
Case 2:p is a factor of (n2+n+1).
I'm still working on it.
Log in to reply
That is not true, is it? Try (n,p)=(7,19).
Can you find out what's wrong with your reasoning?
Log in to reply
I was totally wrong. :(
It's only true that p must divide one of the two factors
Thanks. It was really helpful.
what if n-1 = kp or n2+n+1 = kp , then you cannot assert that p = n-1 or n2+n+1 like mursalin habib's case where kp = n2+n+1 with k =3 ?
Try rewriting it as (n−1)(n2+n+1)=p(p−1)
Log in to reply
I tried that and considered it from multiple angle but, failed to go anywhere from there. Can you be more specific about what to do from there?
I haven't seen a full answer yet. Mine is kind of ugly but I think it works.
As in the previous solutions, reduce to the case where p∣(n2+n+1). Write pk=n2+n+1, so p−1=k(n−1). Solve for p to get p=k(n−1)+1. Plug in to get k2(n−1)+k=n2+n+1. Write as a quadratic in n: n2+(1−k2)n+(k2−k+1)=0.
Use the quadratic formula: n=21(k2−1±(k2−1)2−4(k2−k+1))=21(k2−1±(k2−3)2+4k−12).
If k=1 or k=2 then the quantity under the square root is negative. If k=3 then we get n=21(8±6)=1,7. The former solution is no good (p=1) but the latter solution yields (7,19). If k≥4 then the quantity inside the square root is greater than (k2−3)2. But since k2−k+1>0 for all k, the quantity under the square root is less than (k2−1)2. So the square root itself is strictly between k2−3 and k2−1.
So if we choose the minus sign for n, we get that n is strictly between 0 and 1, which is no good. If we choose the plus sign for n, we get that n is strictly between k2−2 and k2−1, which is also no good. So (7,19) is the only solution.
Log in to reply
Thank you very much. It was great help. I have been trying this problem for almost two weeks. You are awesome.