A141702 a(n) is the number of Carmichael numbers of the form prime(n)*prime(n')*prime(n") with n > n' > n".
0, 0, 0, 0, 0, 0, 2, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 2, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 2, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 2, 0, 0, 0, 3, 1, 2, 0, 0, 0, 0, 1
Offset: 1
Examples
a(7)=2 is the first nonzero term since 561 = 3*11*17 and 1105 = 5*13*17 are the two smallest Carmichael numbers and there's no other Carmichael number having prime(7)=17 as largest factor.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
PARI
A141702(n) = { local( p=prime(n), c=0 ); forprime( q=5,p-2, forprime( r=3,q-2, (p*q*r-1)%(p-1)==0 && (p*q*r-1)%(q-1)==0 && (p*q*r-1)%(r-1)==0 && c++ ));c }
Formula
a(n) = # { pqr | p=prime(n) > q=prime(n') > r=prime(n") ; p-1 | pqr-1 ; q-1 | pqr-1 ; r-1 | pqr-1 }
Comments