%I #19 Sep 08 2022 08:44:45
%S 4,8,10,15,20,21,35,40,105,145,231,344,561,609,645,671,703,841,1065,
%T 1105,1281,1387,1417,1729,1885,1891,2121,2465,2701,2821,3045,3053,
%U 3829,4033,4205,4521,4870,5365,5565,6161,6892,7957,8295,8321,8695,8905,8911,9253
%N Pseudoprimes to base 41.
%C Composite numbers n such that 41^(n-1) == 1 (mod n).
%H R. J. Mathar, <a href="/A020169/b020169.txt">Table of n, a(n) for n=1..1003</a>
%H <a href="/index/Ps#pseudoprimes">Index entries for sequences related to pseudoprimes</a>
%t base = 41; t = {}; n = 1; While[Length[t] < 100, n++; If[! PrimeQ[n] && PowerMod[base, n-1, n] == 1, AppendTo[t, n]]]; t (* _T. D. Noe_, Feb 21 2012 *)
%o (Magma) [n: n in [1..3*10^4] | IsOne(Modexp(41, n-1, n)) and not IsPrime(n)]; // _Vincenzo Librandi_, Mar 15 2019
%Y Cf. A001567 (pseudoprimes to base 2).
%K nonn
%O 1,1
%A _David W. Wilson_