OFFSET
1,2
EXAMPLE
For n = 7, 2*6 + 1, 4*4 + 1 and 6*2 + 1 are prime, so a(7) = 3.
MAPLE
A057458 := proc(n)
a := 0 ;
for k from 1 to n do
if isprime(1+k*(n+1-k)) then
a := a+1 ;
end if;
end do:
a;
end proc:
seq(A057458(n), n=1..80) ; # R. J. Mathar, Jan 28 2014
MATHEMATICA
Table[Count[Table[k(n+1-k)+1, {k, n}], _?PrimeQ], {n, 90}] (* Harvey P. Dale, Jul 22 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Sep 26 2000
STATUS
approved