A216023 Fermat pseudoprimes to base 2 divisible by 5.
645, 1105, 1905, 2465, 10585, 11305, 16705, 18705, 34945, 39865, 41665, 55245, 62745, 72885, 74665, 83665, 107185, 121465, 208465, 215265, 223345, 266305, 278545, 449065, 451905, 464185, 493885, 588745, 743665, 757945, 800605, 825265, 831405, 898705, 1050985
Offset: 1
Keywords
Links
- Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
- Eric Weisstein's World of Mathematics, Poulet Number
- Eric Weisstein's World of Mathematics, Harshad Number
- Eric Weisstein's World of Mathematics, Sum of Prime Factors
- Eric Weisstein's World of Mathematics, Digit Sum
Crossrefs
Cf. A001567.
Programs
-
Mathematica
Select[5*Range[2, 210200], PowerMod[2, # - 1, #] == 1 &] (* T. D. Noe, Aug 31 2012 *)
-
PARI
Korselt(n)=my(f=factor(n)); for(i=1, #f[, 1], if(f[i, 2]>1||(n-1)%(f[i, 1]-1), return(0))); 1 list(lim)=my(v=List()); forstep(n=645, lim, 20, if(Korselt(n), listput(v, n))); Vec(v) \\ Charles R Greathouse IV, Jun 30 2017
Comments