Find the smallest positive integer n for which the function f ( n ) = n 2 + n + 4 1 is composite.
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.
Not quite right. You have only shown that n = 4 0 is possible, you didn't show that it is a minimum value.
In response to the Challenge Master: Proving that n = 4 0 is the least integer is surprisingly difficult, as demonstrated here . It would probably be easier to just brute force our way through the numbers 1 to 3 9 . :)
Why does 41 being prime imply that n^2+n must be divisible by 41 for n^2+n+41=f(n) to be composite? This is only true if we specify that f(n) is divisible by 41. For example, 3 is prime and 5 is not divisible by 3, but 5+3 is composite.
Log in to reply
Because 4 1 is a prime and n an integer, we have no way of factorize f ( n ) = n 2 + n + 4 1 . For your example, you cannot get n 2 + n = 5 or 3 . For example, n 2 + n + 3 ⇒ n m i n = 2 and n 2 + n + 5 ⇒ n m i n = 4 . This actually generalizes it. f ( n ) = n 2 + n + p ⇒ n m i n = p − 1 .
I don't see anything wrong. Since 4 1 is a prime and n is an integer, we cannot factorize f ( n ) = n 2 + n + 4 1 . So f ( n ) is a composite if and only if n ( n + 1 ) is divisible by 4 1 . It is impossible to have an n < 4 1 which divides 4 1 because 4 1 is a prime. Therefore ( n + 1 ) = 4 1 must be smallest divisor of 4 1 for n < 4 1 and n = 4 0 .
This result was founded by Euclid that in n 2 + n + 4 1 is prime from n = 0 to 39. So minimum is 40.
Let's see what happens with small prime numbers: for n 2 + n + 2 we have n = 1 , for n 2 + n + 3 we have n = 2 , for n 2 + n + 5 we have n = 4 , for n 2 + n + 7 we have n = 6 , etc. It seems to be 4 0 . Let's check this potential solution: f ( 4 0 ) = 1 6 8 1 = 4 1 2 , then it is composite. But now we should show that it is the minimum value or just brute force through the numbers.
Problem Loading...
Note Loading...
Set Loading...
Since 4 1 is a prime, for f ( n ) = n 2 + n + 4 1 to be a composite, n 2 + n = n ( n + 1 ) must be divisible by 4 1 . As 4 1 is a prime, it cannot be a multiple of any n < 4 1 , therefore, n ( n + 1 ) is not a multiple of 4 1 for n < 4 0 . Therefore, the smallest n that satisfies the condition is n = 4 0 .