A216170 Fermat pseudoprimes to base 2 of the form (n^2 + 2*n)/3.
341, 645, 2465, 2821, 4033, 5461, 8321, 15841, 25761, 31621, 68101, 83333, 162401, 219781, 282133, 348161, 530881, 587861, 653333, 710533, 722261, 997633, 1053761, 1082401, 1193221, 1246785, 1333333, 1357441, 1398101, 1489665, 1584133, 1690501, 1735841
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
Programs
-
Mathematica
t = Select[Table[n (n + 2)/3, {n, 4, 10000}], IntegerQ]; Select[t, PowerMod[2, # - 1, #] == 1 &] (* T. D. Noe, Sep 03 2012 *)
-
PARI
list(lim)=my(v=List(),t); lim\=1; forstep(n=31,sqrtint(3*lim+1)-1,[2,1], t=t=n*(n+2)/3; if(Mod(2,t)^t==2, listput(v,t))); Vec(v) \\ Charles R Greathouse IV, Jun 30 2017
Comments