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.

A273614 Numbers k such that 3k - 1 divides 3^k - 1.

Original entry on oeis.org

1, 9, 12, 96, 345, 432, 852, 945, 1452, 2160, 3480, 3753, 4800, 6561, 6984, 13230, 15840, 17040, 30210, 31008, 40320, 43776, 44352, 44652, 47628, 55200, 56940, 60420, 61065, 69312, 71145, 74100, 77400, 81504, 125580, 128016, 175952, 192240, 198168
Offset: 1

Views

Author

Juri-Stepan Gerasimov, May 26 2016

Keywords

Crossrefs

Programs

  • Magma
    [n: n in [1..200000] | Modexp(3, n, 3*n-1) eq 1];
    
  • Maple
    a:= proc(n) option remember; local k;
          if n=1 then 1 else for k from 1+a(n-1)
          while 3&^k mod(3*k-1)<>1 do od; k fi
        end:
    seq(a(n), n=1..40);  # Alois P. Heinz, May 27 2016
  • Mathematica
    Select[Range[10^6], PowerMod[3, #, 3*# - 1] == 1 &] (* Giovanni Resta, May 27 2016 *)
  • PARI
    is(n)=Mod(3,3*n-1)^n==1 \\ Charles R Greathouse IV, May 29 2016