OFFSET
1,10
COMMENTS
Least value in the n-th row of the table in A294508.
First occurrence of -1, 0, 1, 2, etc. occurs at n = 7, 1, 2, 10, 16, 27, 28, 36, 56, 58, 66, 88, 93, 94, 95, 125, 130, 145, 147, 148, 156, 190, 206, 207, 215, 216, 218, etc.
Last occurrence of -1, 0, 1, 2, etc. occurs at n = 7, 19, 23, 32, 43, 49, 74, 75, 83, 115, 116, 117, 119, 139, 140, 143, 152, 199, 200, 202, 204, 205, 213, 242, 244, 284, 285, etc.
Conjecture: a(n) <= pi(n*m) - pi(n)*pi(m) for all m > n if n <> 5.
LINKS
Robert Israel, Table of n, a(n) for n = 1..5000
EXAMPLE
a(13) = 0 since 0 is the least value in the 13th row of A294508.
MAPLE
f:= n -> min(seq(numtheory:-pi(n*m)-numtheory:-pi(n)*numtheory:-pi(m), m=1..n)):
map(f, [$1..200]); # Robert Israel, Nov 08 2017
MATHEMATICA
t[n_, m_] := PrimePi[n*m] - PrimePi[n]*PrimePi[m]; Min @@@ Table[ t[n, m], {n, 100}, {m, n}]
PROG
(PARI) a(n) = vecmin(vector(n, m, primepi(n*m) - primepi(n)*primepi(m))); \\ Michel Marcus, Nov 08 2017
CROSSREFS
KEYWORD
sign
AUTHOR
Jonathan Sondow and Robert G. Wilson v, Nov 06 2017
STATUS
approved