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.

A204935 The number j! such that n divides k!-j!>0, where k is the least positive integer for which such a j exists.

Original entry on oeis.org

1, 2, 6, 2, 1, 6, 1, 24, 6, 120, 2, 24, 24, 6, 120, 24, 1, 6, 6, 120, 6, 2, 1, 24, 120, 24, 720, 5040, 24, 120, 2, 24, 24, 6, 5040, 720, 720, 6, 24, 120, 120, 6, 40320, 24, 720, 24, 24, 24, 5040, 120, 6, 24, 2, 720, 720, 5040, 6, 24, 2, 120, 40320, 2, 5040
Offset: 1

Views

Author

Clark Kimberling, Jan 21 2012

Keywords

Comments

For a guide to related sequences, see A204892.

Crossrefs

Programs

  • Maple
    f:= proc(n) local t,k,V;
      t:= 1:
      for k from 1 do
        t:= t*k mod n;
        if assigned(V[t]) then return V[t]! else V[t]:= k fi
      od
    end proc:
    map(f, [$1..100]); # Robert Israel, Nov 10 2024
  • Mathematica
    (See the program at A204932.)