Prime numbers are always Prime #2

Find the smallest positive prime number that divides n 2 + 5 n + 23 n^2 + 5n + 23 for some integer n n .


The answer is 17.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

5 solutions

Patrick Corn
Aug 10, 2015

Clearly p = 2 p = 2 doesn't work. So we can assume p p is odd.

Now p ( n 2 + 5 n + 23 ) p ( 4 n 2 + 20 n + 92 ) p ( ( 2 n + 5 ) 2 + 67 ) p | (n^2+5n+23) \Leftrightarrow p | (4n^2+20n +92) \Leftrightarrow p | ((2n+5)^2 + 67) so this happens for some n n if and only if 67 -67 is a square mod p p (if x 2 67 x^2 \equiv -67 mod p p , then either x x or x + p x + p can be written in the form 2 n + 5 2n + 5 for some n n ).

Using Legendre symbols or just checking by hand, we see that the smallest positive prime number p p such that 67 -67 is a square mod p p is 17 \fbox{17} . And you can recover an n n that works by using x = 1 , n = 2 x = 1, n = -2 .

Wow, 17 is quite a lot larger than I would have expected!

Calvin Lin Staff - 5 years, 10 months ago

Wow! I really hadn't thought of this approach. (+1)

Satyajit Mohanty - 5 years, 10 months ago

Why can either x or x+p be written in the form of 2n+5? How do you apply Legendre's Symbol?

Alisa Meier - 5 years, 5 months ago

Log in to reply

Either x x or x + p x+p is odd, and any odd number can be written as 2 n + 5 2n+5 for some n n .

Legendre symbols are tools to check whether a number is a square mod p p . Checking by hand is usually slower than using them along with the law of quadratic reciprocity .

Patrick Corn - 5 years, 5 months ago
Kushal Bose
Nov 3, 2016

n 2 + 5 n + 23 = n 2 + 5 n + 6 + 17 = ( n + 2 ) ( n + 3 ) + 17 n^2+5n+23 \\ =n^2 +5n+6 +17 \\ =(n+2)(n+3) +17

So, there is an integer exists such that ( n + 2 ) ( n + 3 ) (n+2)(n+3) is divisible by 17.

Then the smallest prime number is 17 17 where smallest n = 14 n=14 .This prime is smallest because the above expression cannot be factored like this in other ways which will be less than 17 17

Why smallest n=14 ? How with - 2 or - 3 ?

Akhmad Syaikhu Firizal - 4 years, 5 months ago

Log in to reply

We are told to find the prime number .No matter how the n is

Kushal Bose - 4 years, 5 months ago

Since n 2 + 23 n^2+23 has a minimum of 23, a prime, we try to get some small number. Possible if n is <0. Greater the negative difference n 2 5 n n^2-5n smaller is f(n).
f(-1)=19, ...., f(-2)=17,..., f(-3)=17,...., f(-4)=19 and we see the value goes on increasing because n 2 5 n n^2-5n difference does not remain negative. So 17 is the smallest.

Aditya Khurmi
Sep 24, 2017

Let S = n 2 + 5 n + 23 S=n^{2}+5n+23 .

Note that the minimum of S S is attained when n = 5 2 n=\dfrac{-5}{2} and thus, considering an integral value for n n , we get

S m i n = 17 S_{min}=17 attained when n = 3 , 2 n=-3,-2

It is easy to check that no prime less than 17 divides S S by looking at the quadratic residues, and hence, we get the answer 17 \boxed{17} .

Yep, I did it that way too!

Jason Youm - 11 months, 3 weeks ago

By trial and error,we try to complete the square to solve for the gen. Diophantine equation....Using quadratic residues,we get n^2+5n+23 when divided by 17 is congruent to n^2-12n+6=(n-6)^2 -30 which is congruent to (n-6)^2 -13....Then it's easy to check that 2^2=4 is congruent to -13.....Hence 17 is the answer

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...