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.

A275062 Number A(n,k) of permutations p of [n] such that p(i)-i is a multiple of k for all i in [n]; square array A(n,k), n>=0, k>=0, read by antidiagonals.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 6, 1, 1, 1, 1, 2, 24, 1, 1, 1, 1, 1, 4, 120, 1, 1, 1, 1, 1, 2, 12, 720, 1, 1, 1, 1, 1, 1, 4, 36, 5040, 1, 1, 1, 1, 1, 1, 2, 8, 144, 40320, 1, 1, 1, 1, 1, 1, 1, 4, 24, 576, 362880, 1, 1, 1, 1, 1, 1, 1, 2, 8, 72, 2880, 3628800, 1
Offset: 0

Views

Author

Alois P. Heinz, Jul 15 2016

Keywords

Examples

			A(5,0) = A(5,5) = 1: 12345.
A(5,1) = 5! = 120: all permutations of {1,2,3,4,5}.
A(5,2) = 12: 12345, 12543, 14325, 14523, 32145, 32541, 34125, 34521, 52143, 52341, 54123, 54321.
A(5,3) = 4: 12345, 15342, 42315, 45312.
A(5,4) = 2: 12345, 52341.
A(7,4) = 8: 1234567, 1274563, 1634527, 1674523, 5234167, 5274163, 5634127, 5674123.
Square array A(n,k) begins:
  1,       1,     1,   1,   1,  1,  1, 1, 1, 1, 1, ...
  1,       1,     1,   1,   1,  1,  1, 1, 1, 1, 1, ...
  1,       2,     1,   1,   1,  1,  1, 1, 1, 1, 1, ...
  1,       6,     2,   1,   1,  1,  1, 1, 1, 1, 1, ...
  1,      24,     4,   2,   1,  1,  1, 1, 1, 1, 1, ...
  1,     120,    12,   4,   2,  1,  1, 1, 1, 1, 1, ...
  1,     720,    36,   8,   4,  2,  1, 1, 1, 1, 1, ...
  1,    5040,   144,  24,   8,  4,  2, 1, 1, 1, 1, ...
  1,   40320,   576,  72,  16,  8,  4, 2, 1, 1, 1, ...
  1,  362880,  2880, 216,  48, 16,  8, 4, 2, 1, 1, ...
  1, 3628800, 14400, 864, 144, 32, 16, 8, 4, 2, 1, ...
		

Crossrefs

A(k*n,n) for k=1..4 give: A000012, A000079, A000400, A009968.
Cf. A225816.

Programs

  • Maple
    A:= (n, k)-> mul(floor((n+i)/k)!, i=0..k-1):
    seq(seq(A(n, d-n), n=0..d), d=0..14);
  • Mathematica
    A[n_, k_] := Product[Floor[(n+i)/k]!, {i, 0, k-1}];
    Table[A[n, d-n], {d, 0, 14}, {n, 0, d}] // Flatten (* Jean-François Alcover, May 26 2019, from Maple *)

Formula

A(n,k) = Product_{i=0..k-1} floor((n+i)/k)!.
A(k*n,k) = (n!)^k = A225816(k,n).
For k > 0, A(n, k) ~ (2*Pi*n)^((k - 1)/2) * n! / k^(n + k/2). - Vaclav Kotesovec, Oct 02 2018

A264709 T(n,k)=Number of nXk arrays of permutations of 0..n*k-1 with rows nondecreasing modulo 3 and columns nondecreasing modulo 6.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 2, 8, 4, 1, 4, 84, 152, 28, 1, 8, 800, 8064, 4544, 176, 1, 24, 15360, 789696, 1555200, 202176, 1600, 2, 72, 357696, 120512448, 2248445952, 963726336, 10964160, 16128, 4, 216, 6873984, 29928517632, 3889709973504
Offset: 1

Views

Author

R. H. Hardin, Nov 21 2015

Keywords

Comments

Table starts
.1.....1........1.........2..........4.............8..........24......72.216
.1.....1........8........84........800.........15360......357696.6873984
.1.....4......152......8064.....789696.....120512448.29928517632
.1....28.....4544...1555200.2248445952.3889709973504
.1...176...202176.963726336
.1..1600.10964160
.2.16128

Examples

			Some solutions for n=3 k=4
..6..1..7..8....0..1..7.10....3..6..0..9....0..6..7..1....0..9..4..1
..0..3..2.11....6..8..2.11...10..1..7..4....3..9..2..8....6..3.10..7
..9..4.10..5....9..3..4..5....5..2..8.11....4.10..5.11....8..5.11..2
		

Crossrefs

Column 1 is A264701.
Row 1 is A264557.

A264714 T(n,k)=Number of nXk arrays of permutations of 0..n*k-1 with rows nondecreasing modulo 5 and columns nondecreasing modulo 6.

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 18, 40, 11, 1, 2, 116, 803, 815, 94, 1, 4, 627, 23775, 74070, 22320, 365, 2, 8, 6211, 468540, 3908105, 3432012, 352181, 2891, 4, 16, 59011, 17266449, 530614763
Offset: 1

Views

Author

R. H. Hardin, Nov 21 2015

Keywords

Comments

Table starts
.1....1......1.......1.......1.........2........4.....8.16
.1....2......2......18.....116.......627.....6211.59011
.1....2.....40.....803...23775....468540.17266449
.1...11....815...74070.3908105.530614763
.1...94..22320.3432012
.1..365.352181
.2.2891

Examples

			Some solutions for n=4 k=4
.15..0.13..8....0..6..8.13....0..1.13.14....0..1..7.13....0..6..7..2
.10.12..7..2....1.12..2..7...12..7..2..8...12..2..3.14....1.12..3..8
.11..6..1.14...10..3..4.14....6..3..9..4....6..8..9..4...13.14..9..4
..5..3..4..9....5.15.11..9....5.15.10.11...15..5.10.11...15..5.10.11
		

Crossrefs

Column 1 is A264701.
Row 1 is A264656.

A264728 T(n,k)=Number of nXk arrays of permutations of 0..n*k-1 with rows nondecreasing modulo 4 and columns nondecreasing modulo 6.

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 1, 4, 3, 1, 2, 22, 48, 12, 1, 4, 154, 663, 474, 69, 1, 8, 931, 23096, 66528, 11552, 278, 2, 16, 14160, 1602048, 18761472, 12288000, 460672, 2524, 4, 48, 195952, 165778944
Offset: 1

Views

Author

R. H. Hardin, Nov 22 2015

Keywords

Comments

Table starts
.1....1......1........1........2.......4.........8.....16.48
.1....2......4.......22......154.....931.....14160.195952
.1....3.....48......663....23096.1602048.165778944
.1...12....474....66528.18761472
.1...69..11552.12288000
.1..278.460672
.2.2524
.4

Examples

			Some solutions for n=4 k=4
.12..2..6..7...12.13..1..9...12..1.14..2...12..0..1..9....0.13..2..7
..0..8..1.13....0..2..7..3....6..7.15..3...13..6..7..3...12..4..8.14
..9.14.10..3....6.14.10.15....0.13..9..5...10..2.14.15....6.10..3.15
..4..5.11.15....4..8..5.11....8..4.10.11....4..8..5.11....1..5..9.11
		

Crossrefs

Column 1 is A264701.
Row 1 is A264635.

A264862 T(n,k)=Number of nXk arrays of permutations of 0..n*k-1 with rows nondecreasing modulo 6 and columns nondecreasing modulo 7.

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 1, 5, 5, 1, 1, 12, 30, 8, 1, 1, 72, 839, 839, 47, 1, 2, 516, 16365, 39131, 15000, 422, 1, 4, 2727, 550479, 4497392, 3474446, 530302, 1625, 2, 8, 29935, 8299492, 285666842
Offset: 1

Views

Author

R. H. Hardin, Nov 26 2015

Keywords

Comments

Table starts
.1....1......1.......1.......1.........1.......2.....4.8
.1....2......5......12......72.......516....2727.29935
.1....5.....30.....839...16365....550479.8299492
.1....8....839...39131.4497392.285666842
.1...47..15000.3474446
.1..422.530302
.1.1625
.2

Examples

			Some solutions for n=4 k=4
..0..7..1.14....0..1..7..2....7.14..8.15....0..7.14.15....0.14..8.15
..8..9..3.15...14..8.15.10...12..0..1..3....8..3..9.11...12..7..3..9
.12..2..4.10...13..9..3..4...13..2..9..4....1.13..2..4....6..1..4.10
..6.13..5.11....6.12..5.11....6.10..5.11...12..6.10..5...13..2.11..5
		

Crossrefs

Column 1 is A264791.
Row 1 is A264701.
Showing 1-5 of 5 results.