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.

A262105 Pseudoprimes to base 8, written in base 8.

Original entry on oeis.org

11, 25, 55, 77, 101, 151, 165, 205, 231, 347, 421, 525, 741, 777, 1061, 1111, 1205, 1213, 1535, 1665, 1751, 2121, 2401, 2525, 2553, 2611, 3005, 3161, 3175, 3301, 3371, 3561, 3777, 4171, 4641, 4705, 5215, 5405, 6111, 6143
Offset: 1

Views

Author

Abdul Gaffar Khan, Sep 11 2015

Keywords

Crossrefs

Cf. A007094 (Numbers in base 8), A020137 (Pseudoprimes to base 8).

Programs

  • Mathematica
    base = 8; t = {}; n = 1;
      While[Length[t] < 40, n++;
       If[! PrimeQ[n] && PowerMod[base, n - 1, n] == 1, AppendTo[t, FromDigits@ IntegerDigits[n, 8]]]];  t

Formula

a(n) = A007094(A020137(n)).