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.

Showing 1-5 of 5 results.

A204931 Least k such that n divides A204930(k), the k-th difference of two distinct factorials.

Original entry on oeis.org

1, 3, 6, 3, 2, 6, 7, 10, 6, 15, 5, 10, 32, 13, 15, 10, 7, 6, 9, 15, 13, 5, 4, 10, 15, 32, 21, 28, 14, 15, 38, 10, 19, 13, 28, 21, 72, 9, 32, 15, 20, 13, 53, 19, 21, 25, 40, 10, 28, 15, 13, 32, 57, 21, 27, 28, 9, 14, 8, 15
Offset: 1

Views

Author

Clark Kimberling, Jan 21 2012

Keywords

Comments

For a guide to related sequences, see A204892.

Crossrefs

Programs

  • Mathematica
    (See the program at A204932.)

A204932 Least k such that n divides k!-j! for some j satisfying 1<=j

Original entry on oeis.org

2, 3, 4, 3, 3, 4, 5, 5, 4, 6, 4, 5, 9, 6, 6, 5, 5, 4, 5, 6, 6, 4, 4, 5, 6, 9, 7, 8, 6, 6, 10, 5, 7, 6, 8, 7, 13, 5, 9, 6, 7, 6, 11, 7, 7, 8, 10, 5, 8, 6, 6, 9, 12, 7, 8, 8, 5, 6, 5, 6, 16, 10, 8, 9, 14, 7, 8, 11, 8, 8, 9, 7, 8, 13, 6, 7, 12, 9, 14, 7, 10, 7, 19, 8, 11, 11, 6, 7, 10, 7
Offset: 1

Views

Author

Clark Kimberling, Jan 21 2012

Keywords

Comments

See A204892 for a discussion and guide to related sequences.

Examples

			1 divides 2!-1!, so a(1)=2
2 divides 3!-2!, so a(2)=3
3 divides 4!-3!, so a(3)=4
13 divides 9!-4!, so a(13)=9
		

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 k else V[t]:= k fi
      od
    end proc:
    map(f, [$1..100]); # Robert Israel, Nov 11 2024
  • Mathematica
    s[n_] := s[n] = n!; z1 = 80; z2 = 60;
    Table[s[n], {n, 1, 30}]     (* A000142 *)
    u[m_] := u[m] = Flatten[Table[s[k] - s[j], {k, 2, z1}, {j, 1, k - 1}]][[m]]
    Table[u[m], {m, 1, z1}]     (* A204930 *)
    v[n_, h_] := v[n, h] = If[IntegerQ[u[h]/n], h, 0]
    w[n_] := w[n] = Table[v[n, h], {h, 1, z1}]
    d[n_] := d[n] = First[Delete[w[n], Position[w[n], 0]]]
    Table[d[n], {n, 1, z2}]     (* A204931 *)
    k[n_] := k[n] = Floor[(3 + Sqrt[8 d[n] - 1])/2]
    m[n_] := m[n] = Floor[(-1 + Sqrt[8 n - 7])/2]
    j[n_] := j[n] = d[n] - m[d[n]] (m[d[n]] + 1)/2
    Table[k[n], {n, 1, z2}]        (* A204932 *)
    Table[j[n], {n, 1, z2}]        (* A204933 *)
    Table[s[k[n]], {n, 1, z2}]     (* A204934 *)
    Table[s[j[n]], {n, 1, z2}]     (* A204935 *)
    Table[s[k[n]] - s[j[n]], {n, 1, z2}]     (* A204936 *)
    Table[(s[k[n]] - s[j[n]])/n, {n, 1, z2}] (* A204937 *)

A204937 (k(n)!-j(n)!)/n, where (k!,j!) is the least pair of distinct factorials for which n divides k!-j!.

Original entry on oeis.org

1, 2, 6, 1, 1, 3, 17, 12, 2, 60, 2, 8, 27912, 51, 40, 6, 7, 1, 6, 30, 34, 1, 1, 4, 24, 13956, 160, 1260, 24, 20, 117058, 3, 152, 21, 1008, 120, 168297840, 3, 9304, 15, 120, 17, 927360, 114, 96, 876, 77208, 2, 720, 12, 14, 6978, 9037766, 80, 720, 630, 2
Offset: 1

Views

Author

Clark Kimberling, Jan 21 2012

Keywords

Comments

The ordering of differences k!-j! is given at A204930. For a guide to related sequences, see A204892.

Crossrefs

Programs

  • Mathematica
    (See the program at A204932.)

A204936 k!-j!, where (k!,j!) is the least pair of distinct factorials for which n divides k!-j!.

Original entry on oeis.org

1, 4, 18, 4, 5, 18, 119, 96, 18, 600, 22, 96, 362856, 714, 600, 96, 119, 18, 114, 600, 714, 22, 23, 96, 600, 362856, 4320, 35280, 696, 600, 3628798, 96, 5016, 714, 35280, 4320, 6227020080, 114, 362856, 600, 4920, 714, 39876480, 5016, 4320
Offset: 1

Views

Author

Clark Kimberling, Jan 21 2012

Keywords

Comments

The ordering of pairs (k!,j!) is given by A204930. For a guide to related sequences, see A204892.

Examples

			(See the example at A204932.)
		

Crossrefs

Programs

  • Mathematica
    (See the program at A204932.)

A051949 Differences of two factorial numbers.

Original entry on oeis.org

0, 1, 4, 5, 18, 22, 23, 96, 114, 118, 119, 600, 696, 714, 718, 719, 4320, 4920, 5016, 5034, 5038, 5039, 35280, 39600, 40200, 40296, 40314, 40318, 40319, 322560, 357840, 362160, 362760, 362856, 362874, 362878, 362879, 3265920
Offset: 0

Views

Author

N. J. A. Sloane, Jan 05 2000

Keywords

Comments

Contribution from Olivier Gérard, Oct 09 2012: (Start)
This sequence can also be seen as a triangular table starting at offset 1.
0
1
4 5
18 22 23
96 114 118 119
600 696 714 718 719
4320 4920 5016 5034 5038 5039
First column is A001563, first diagonal is A033312, row sum is A206816.
;
or starting at offset 0:
0
1 4
5 18 22
23 96 114 118
119 600 696 714 718
719 4320 4920 5016 5034 5038
First column is A033312, first diagonal is n!-2, row sum is A185009.
(End)

Crossrefs

Cf. A204930 (ordered differences of factorial).
Showing 1-5 of 5 results.