OFFSET
0,2
COMMENTS
Records: 1, 6, 12, 24, 60, 84, 120, 336, 360, 840, ..., .
From David A. Corneth, Jul 10 2025: (Start)
a(n) is even for n > 0. If a(n) is odd and n > 0 then there are two distinct even primes.
For terms t where 1 < t <= 10^8 we have 6 | t. Is any term > 1 divisible by 6? (End)
LINKS
David A. Corneth, Table of n, a(n) for n = 0..275
David A. Corneth, PARI program
EXAMPLE
a(0) = 1 since 1 is not expressible as (p+1)(q+1), in fact no odd number is expressible this way;
a(1) = 6 since 6^2 = 36 = (2+1)(11+1);
a(2) = 18 since 18^2 = 324 = (2+1)(107+1) = (5+1)(53+1);
a(3) = 12 since 12^2 = 144 = (2+1)(47+1) = (5+1)(23+1) = (7+1)(17+1); etc.
MATHEMATICA
(* first compute A274876: f[n_] := f[n] = Block[{c = 0, p = 2}, While[p < 2n -1, If[ PrimeQ[(2n)^2/(p +1) -1], c++]; p = NextPrime@ p]; c]; f[0] = 1; then *) Table[(2Select[ Range@ 5000, f@# == n &])[[1]], {n, 0, 10}]
PROG
(PARI) \\ See Corneth link
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov and Robert G. Wilson v, Jul 10 2016
STATUS
approved
