cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A130442 Even pseudoprimes to base 41.

Original entry on oeis.org

4, 8, 10, 20, 40, 344, 4870, 6892, 17230, 68920, 250820, 296440, 317032, 368722, 369370, 451426, 472312, 473240, 632270, 2326472, 3186730, 3429190, 4438760, 4670956, 4948456, 5509540, 8990356, 11817604, 11841436, 13094342, 17668360
Offset: 1

Views

Author

Alexander Adamchuk, May 26 2007

Keywords

Crossrefs

Cf. A020169 (pseudoprimes to base 41).
Cf. A006935 (even pseudoprimes (or primes) to base 2: n divides 2^n - 2, n even).
Cf. A130433 (even pseudoprimes to base 3).
Cf. A090082 (even pseudoprimes to base 5).

Programs

  • Mathematica
    Do[ f=PowerMod[ 41, 2n-1, 2n ]; If[ f==1, Print[ 2n ] ], {n,2,500000} ]
    lst = {}; Do[ If[ PowerMod[41, 2n - 1, 2n] == 1, AppendTo[lst, 2n]], {n, 2, 2^31}]; lst (* Robert G. Wilson v, Jun 01 2007 *)
  • PARI
    is(k) = k > 2 && !(k % 2) &&  Mod(41, k)^(k-1) == 1; \\ Amiram Eldar, Sep 29 2024

Extensions

More terms from Robert G. Wilson v, Jun 01 2007