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.

A128395 Numbers k such that k^2 divides 15^k-1.

Original entry on oeis.org

1, 2, 4, 7, 8, 14, 16, 28, 56, 112, 136, 272, 452, 812, 904, 952, 1624, 1808, 1904, 3164, 3248, 6328, 11912, 12656, 15368, 18632, 23824, 27608, 30736, 37264, 47908, 55216, 60248, 83384, 91756, 95816, 102604, 107576, 113936, 120496, 130424, 166768
Offset: 1

Views

Author

Alexander Adamchuk, Mar 01 2007

Keywords

Crossrefs

Programs

  • Mathematica
    a={1};For[n=1,n<200000,n++,If[PowerMod[15,n,n^2]==1, AppendTo[a, n]]]; a (* Stefan Steinerberger, Jun 10 2007 *)
    Join[{1},Select[Range[167000],PowerMod[15,#,#^2]==1&]] (* Harvey P. Dale, Sep 14 2020 *)
  • PARI
    is(k) = Mod(15, k^2)^k == 1; \\ Amiram Eldar, May 21 2024

Extensions

More terms from Stefan Steinerberger, Jun 10 2007