Euler discovered the remarkable quadratic formula:
It turns out that the formula will produce 40 primes for the consecutive integer values . However, when , is divisble by 41, and certainly when , is clearly divisble by 41.
The incredible formula was discovered, which produces 80 primes for the consecutive values . The product of the coefficients, -79 and 1601, is -126479.
Considering quadratics of the form:
where is the modulus/absolute value of
e.g. and .
Find the product of the coefficients, and , for the quadratic expression that produces the maximum number of primes for consecutive values of , starting with .
To begin with, I saw that the term
had to be prime and positive because
where
is just
. I used a sieve of Eratosthenes to generate primes up to 1,000 to try.
For
, my only insight was that it had to be odd because
is always even for odd numbers but always odd for
. Because two odd numbers always sum to an even number, this meant
could not be even.
Someone online helped me further refine my value for
by pointing out that
also had to be prime and would shrink my list of possible values
to check.
From here I 𝖈𝖗𝖚𝖓𝖈𝖍𝖊𝖉®. I'm sure there's a better way, but this is
how I got here. I don't know why
is negative or why it's greater than -99.
85,511