login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A257643 Carmichael numbers n such that n-1 is squarefree. 2
139952671, 74689102411, 121254376891, 187054437571, 231440115271, 236359158267, 303008129971, 306252926071, 380574791611, 426951670531, 556303918171, 639109148371, 660950414671, 1101375141511, 1483826843731, 1487491483171, 1861175569891, 2794268624071 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
If n is a Carmichael number with n-1 squarefree, then gcd(phi(n),n-1) = lambda(n); i.e. Carmichael lambda function A002322.
LINKS
Robert Israel and Charles R Greathouse IV, Table of n, a(n) for n = 1..1037 (first 164 terms from Israel)
PROG
(PARI) t(n) = my(f=factor(n)); for(i=1, #f[, 1], if(f[i, 2]>1||(n-1)%(f[i, 1]-1), return(0))); 1;
is(n) = n%2 && !isprime(n) && t(n) && n>1;
isok(n) = is(n) && issquarefree(n-1); \\ Altug Alkan, Nov 06 2015
(PARI) is(n) = my(f=factor(n)); for(i=1, #f~, if(f[i, 1]%4<3 || f[i, 2]>1 || (n-1)%(f[i, 1]-1), return(0))); !isprime(n) && issquarefree(n-1)
is(n) = n%2 && !isprime(n) && t(n) && n>1 \\ Charles R Greathouse IV, Nov 09 2015
CROSSREFS
Subsequence of A185321.
Sequence in context: A109093 A217002 A036744 * A262532 A075130 A202280
KEYWORD
nonn
AUTHOR
Thomas Ordowski, Nov 05 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 17 23:23 EDT 2024. Contains 371767 sequences. (Running on oeis4.)