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.

Previous Showing 31-40 of 41 results. Next

A238838 Number of 2n X 2n addition squares in which every digram (s,s;), s' != s, appears once horizontally and once vertically.

Original entry on oeis.org

2, 48, 5760, 5806080, 75246796800, 1780537083494400, 115939740156316876800, 19864514173849162481664000
Offset: 1

Views

Author

N. J. A. Sloane, Mar 15 2014

Keywords

Crossrefs

Formula

a(n) = (2*n)!*A141599(n)^2/phi(n).

A249027 Array read by antidiagonals upwards: T(d,n) = number of d-dimensional permutations of n letters (d >= 1, n >= 1).

Original entry on oeis.org

1, 1, 2, 1, 2, 6, 1, 2, 12, 24, 1, 2, 24, 576, 120, 1, 2, 48, 55296, 161280, 720, 1, 2, 96, 36972288, 2781803520, 812851200, 5040, 1, 2, 192, 6268637952000, 52260618977280, 994393803303936000, 61479419904000, 40320
Offset: 1

Views

Author

N. J. A. Sloane, Oct 23 2014

Keywords

Comments

By definition, this is the number of nXnXnX...Xn = n^(d+1) arrays of 0's and 1's with exactly one 1 in each row, column, ..., line, ... .
An ordinary permutation is the case d = 1 (ordinary matrices with a single 1 in each row and column).
Rows d=2,3,... correspond to Latin squares, cubes, etc.

Examples

			The array begins:
d\n: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
-----------------------------------------------------------
1: 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800, ...
2: 1, 2, 12, 576, 161280, 812851200, 61479419904000, 108776032459082956800,...
3: 1, 2, 24, 55296, 2781803520, 994393803303936000, ...
4: 1, 2, 48, 36972288, 52260618977280, ...
5: 1, 2, 96, 6268637952000, 2010196727432478720, ...
6: 1, 2, 192, ...
7: 1, 2, 384, ...
8: 1, 2, 768, ...
...
		

Crossrefs

Column 4 = A249028.
See A249026 for another version.

A344693 a(n) is the number of joint preference profiles in a stable marriage problem with n men and n women.

Original entry on oeis.org

1, 4, 72, 13824, 19353600, 585252864000, 309856276316160000, 4385849628750224818176000, 2004821822925413274697731145728000, 36224269774123479086515914989912457216000000, 31014029806101314488308034499720939299674343342080000000
Offset: 1

Views

Author

Tanya Khovanova and MIT PRIMES STEP Senior group, Jun 11 2021

Keywords

Comments

A joint profile is defined as a preference profile with a fixed function f(k), such that for every man ranked k by a woman, he has to rank her back as f(k).
In such a profile the ranking matrix of women's preferences forms a Latin square. The same is true for men's preferences.

Examples

			For n=2, there are two types of joint profiles. In the first type, the mutual rankings are (1,1) and (2,2). In the second type, the mutual rankings are (1,2) and (2,1). For each type, the profile is uniquely defined after choosing the woman to be the first choice for the first man (there are two ways to do it). Therefore, a(2) = 4.
		

Crossrefs

Formula

a(n) = n!*A002860(n)

A347927 a(n) is the number of reduced Latin trapezoids of height 3, whose top row has n boxes, the middle row has n+1 boxes, and the bottom row has n+2 boxes.

Original entry on oeis.org

1, 6, 68, 1670, 67295, 3825722, 285667270, 26889145828, 3102187523467, 429700007845870, 70303573947346474, 13405343287124139802, 2945521072579394529097, 738633749151050116349946, 209620243382776121032416188, 66830750007674204750148252472, 23780886787936166425634118631117
Offset: 1

Views

Author

Peter Luschny, Oct 22 2021

Keywords

Examples

			There are 6 reduced Latin trapezoids of height 3 with base of length 4:
----------------------------------------------
    2, 3;       |    4, 3;       |    2, 3;
   3, 1, 2;     |   3, 1, 2;     |   3, 4, 1;
  1, 2, 3, 4;   |  1, 2, 3, 4;   |  1, 2, 3, 4;
-----------------------------------------------
    2, 1;       |    2, 3;       |    2, 3;
   3, 4, 2;     |   3, 4, 2;     |   4, 1, 2;
  1, 2, 3, 4;   |  1, 2, 3, 4;   |  1, 2, 3, 4;
-----------------------------------------------
		

Crossrefs

Cf. A002860 (Latin squares), A000186, A001623, A001626.

A372224 The size of the smallest critical set of hints needed to uniquely solve a generalized n X n Sudoku board.

Original entry on oeis.org

0, 1, 2, 4, 6, 8, 12, 14, 17
Offset: 1

Views

Author

Keywords

Comments

A "critical set" is a collection of Sudoku hints that uniquely determines a solution to the puzzle, but such that removing any hint no longer does so.
Our generalized n X n Sudoku board consists of n rows, n columns, and n lengthwise rectangular subgrids with dimensions A033676(n) X A033677(n). Every row, every column, and every subgrid must contain the digits 1..n.
When n is prime, a(n) is the size of smallest critical set of an n X n Latin square, which is conjectured to equal A002620(n).

Examples

			Below is a critical set of size 17 on the 9 X 9 Sudoku grid:
.
  +-------+-------+-------+
  |       | 8   1 |       |
  |       |       |   4 3 |
  | 5     |       |       |
  +-------+-------+-------+
  |       |   7   | 8     |
  |       |       | 1     |
  |   2   |   3   |       |
  +-------+-------+-------+
  | 6     |       |   7 5 |
  |     3 | 4     |       |
  |       | 2     | 6     |
  +-------+-------+-------+
.
which uniquely determines the solution:
.
  +-------+-------+-------+
  | 2 3 7 | 8 4 1 | 5 6 9 |
  | 1 8 6 | 7 9 5 | 2 4 3 |
  | 5 9 4 | 3 2 6 | 7 1 8 |
  +-------+-------+-------+
  | 3 1 5 | 6 7 4 | 8 9 2 |
  | 4 6 9 | 5 8 2 | 1 3 7 |
  | 7 2 8 | 1 3 9 | 4 5 6 |
  +-------+-------+-------+
  | 6 4 2 | 9 1 8 | 3 7 5 |
  | 8 5 3 | 4 6 7 | 9 2 1 |
  | 9 7 1 | 2 5 3 | 6 8 4 |
  +-------+-------+-------+
		

References

  • J. N. Cooper and A. Kirkpatrick, Critical Sets for Sudoku and General Graphs, Discrete Mathematics, 315-316 (2014), 112-119.
  • C. Lass, Minimal number of clues for Sudokus, Central European Journal of Computer Science, 2 (2012).
  • G. McGuire et al., There Is No 16-Clue Sudoku: Solving the Sudoku Minimum Number of Clues Problem via Hitting Set Enumeration, Experimental Mathematics, 23 (2012), 190-217.

Crossrefs

Formula

When n is prime, a(n) is conjectured to equal A002620(n).
When n is square, a(n) = A198297(n).

A118127 Number of quasigroups of order <= n.

Original entry on oeis.org

1, 2, 3, 8, 43, 1454, 1131985, 12199587820, 2697830531268481, 15224736759268778589978, 2750892227033887206264514123491
Offset: 1

Views

Author

Jonathan Vos Post, May 12 2006

Keywords

Comments

A quasigroup is a groupoid G such that for all a and b in G, there exist unique c and d in G such that ac = b and da = b. Hence a quasigroup is not required to have an identity element, nor be associative. Equivalently, one can state that quasigroups are precisely groupoids whose multiplication tables are Latin squares (possibly empty).

Examples

			a(10) = 2750892227033887206264514123491 = 1 + 1 + 1 + 5 + 35 + 1411 + 1130531 + 12198455835 + 2697818331680661 + 15224734061438247321497 + 2750892211809150446995735533513.
		

Crossrefs

Formula

a(n) = SUM[i=0..n] A057991(i).

A144017 Number of n X n X n alternating sign hypermatrices.

Original entry on oeis.org

1, 1, 2, 14, 924, 852960
Offset: 0

Views

Author

Samuel Zbarsky (sa_zbarsky(AT)yahoo.com), Sep 07 2008

Keywords

Comments

An alternating sign hypermatrix (ASHM) of order n is an n X n X n hypermatrix with entries from {0, 1, -1} such that the nonzero entries of each row, column, and vertical line alternate in sign, beginning and ending with +1.
ASHMs are the three-dimensional analog of alternating sign matrices and generalize Latin squares, as the set of n X n X n ASHMs containing no negative entries is in bijection with the set of n X n Latin squares.

Examples

			For n = 1, the only n X n X n ASHM is [[[1]]].
For n = 2, the two n X n X n ASHMs are
[[[1,0],
  [0,1]],
 [[0,1],
  [1,0]]]
and
[[[0,1],
  [1,0]],
 [[1,0],
  [0,1]]].
		

Crossrefs

3-dimensional analog of A005130, generalization of A002860.

Programs

  • Sage
    # Program written in Sage
    # Returns True if a given list of n n X n ASMs form an ASHM, returns False otherwise
    def ASHM(L):
        n = len(L)
        # Searches through the vertical line in position (i,j) of the hypermatrix for each i and j
        for i in range(n):
            for j in range(n):
                # Since the first nonzero entry in each line of an ASHM is +1, the alternating condition is checked
                # as if the previous nonzero entry was -1
                last = -1
                for k in range(n):
                    # In each position of the current vertical line, if the sign of the current entry is the opposite
                    # of the previous, then the previous sign is updated
                    if L[k][i,j]*last == -1:
                        last *= -1
                    # Otherwise False is returned unless the current entry is 0
                    elif L[k][i,j] != 0:
                        return False
                # If the most recent nonzero entry is not +1 by the time all entries have been checked, False is returned
                if last != 1:
                    return False
        # If False has not been returned, return True
        return True
    # Generates all combinations of one element from each list in L
    def combos(L, current = [[]]):
        # If there are no elements left which have not been combined, then return the combinations already made
        if len(L) == 0:
            return current
        # Otherwise, each element of the next list in L is appended to the current list of combinations made
        output = []
        for K in current:
            for a in L[0]:
                output.append(K + [a])
        return combos(L[1:], output)
    # Counts all ASHMs of order n
    def count_ASHMs(n):
        # All ASMs of order n are imported as matrices
        asms = []
        for A in AlternatingSignMatrices(n):
            asms.append(A.to_matrix())
        # Initially, zero ASHMs have been counted
        count = 0
        # Every possible combination of n n X n ASMs is checked
        for i in combos([[k for k in range(len(asms))] for m in range(n)]):
            # If the current list of n n X n ASMs forms an ASHM, then it is counted
            count += int(ASHM([asms[i[k]] for k in range(n)]))
        # The final count is returned
        return count
    # Note: I ran a more efficient version of this program in Python to obtain the answer for n=5, and even then it took 6 hours.
    print(count_ASHMs(0))
    print(count_ASHMs(1))
    print(count_ASHMs(2))
    print(count_ASHMs(3))
    print(count_ASHMs(4))
    print(count_ASHMs(5))
    # Cian O'Brien, May 31 2023

Formula

Verified using 2 computer searches. The search given counts all sequences of n alternating sign matrices of order n that form an ASHM. The other search uses corner-sum matrices, which are known to be in bijection with alternating sign matrices, by counting all 3-dimensional analogs of corner-sum matrices.

Extensions

a(4) corrected and a(5) added, and definition updated by Cian O'Brien, May 31 2023

A172478 The number of ways to dissect an n X n square into polyominoes of size n and then fill it to make it a Latin square, with the extra requirement that each number occurs within each polyomino exactly once.

Original entry on oeis.org

1, 4, 72, 13872, 11762160, 234312972480, 41182101508222080
Offset: 1

Views

Author

Johan de Ruiter, Feb 04 2010

Keywords

Comments

a(n) is the number of completed n X n jigsaw sudoku puzzles.

Examples

			A 2 X 2 square can be covered by two dominoes by either positioning them vertically or horizontally. Both of these coverings allow for two 2 X 2 Latin squares without violating the extra constraint.
		

References

  • J. de Ruiter, On Jigsaw Sudoku Puzzles and Related Topics, Bachelor Thesis, Leiden Institute of Advanced Computer Science, 2010. [From Johan de Ruiter, Jun 15 2010]

Crossrefs

Cf. A002860 (Number of Latin squares of order n), A172477 (Number of ways to dissect an n X n square into polyominoes of size n).

A174536 Partial sums of A040082.

Original entry on oeis.org

1, 2, 3, 5, 7, 29, 593, 1676860, 115620398393, 208904486974761399, 12216177524273716236243939
Offset: 1

Views

Author

Jonathan Vos Post, Mar 21 2010

Keywords

Comments

Partial sums of number of inequivalent Latin squares (or isotopy classes of Latin squares) of order n. The subsequence of primes (6 in a row) in this partial sum begins: 2, 3, 5, 7, 29, 593.

Examples

			a(7) = 1 + 1 + 1 + 2 + 2 + 22 + 564 = 593 is prime.
		

Crossrefs

Formula

a(n) = SUM[i=1..n] A040082(i).

A265092 Number of n X n arrays containing n copies of 0..n-1 with row sums equal and column sums equal.

Original entry on oeis.org

1, 2, 12, 4464, 75502080
Offset: 1

Views

Author

R. H. Hardin, Dec 01 2015

Keywords

Comments

Diagonal of A265089.
Cf. Latin squares A002860.

Examples

			Some solutions for n=4
..0..2..1..3....3..3..0..0....3..1..2..0....1..0..2..3....2..1..0..3
..3..1..2..0....0..2..3..1....2..3..1..0....2..3..1..0....3..1..2..0
..0..2..1..3....1..1..1..3....0..2..1..3....1..3..2..0....1..2..3..0
..3..1..2..0....2..0..2..2....1..0..2..3....2..0..1..3....0..2..1..3
		

Crossrefs

Previous Showing 31-40 of 41 results. Next