OFFSET
1,1
COMMENTS
am+1, bm+1, cm+1 are primes and am | (N-1), bm | (N-1), cm |(N-1).
All m's are multiples of 6 and m, 2m and 3m divide m(2m+1)(3m+1)-1 automatically.
REFERENCES
Harvey Dubner (harvey(AT)dubner.com), personal communication, Jun 27 2001.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 6 * A046025(n).
MAPLE
q:= n-> andmap(isprime, [6*j*n+1$j=1..3]):
map(x-> 6*x, select(q, [$1..2000]))[]; # Alois P. Heinz, Jun 25 2023
MATHEMATICA
CarmichaelNbrQ[n_] := ! PrimeQ@ n && Mod[n, CarmichaelLambda[n]] == 1; Select[ Range@ 9000, PrimeQ[# + 1] && PrimeQ[2# + 1] && PrimeQ[3# + 1] && CarmichaelNbrQ[(# + 1)(2 # + 1)(3 # + 1)] &] (* Robert G. Wilson v, Aug 23 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 23 2001
EXTENSIONS
Offset corrected by Amiram Eldar, Oct 16 2019
STATUS
approved