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 41-50 of 89 results. Next

A189857 Number of ways to place n nonattacking composite pieces rook + rider[2,6] on an n X n chessboard.

Original entry on oeis.org

1, 2, 6, 24, 120, 720, 2952, 16064, 104800, 816160, 7327728, 74031176, 621684168, 5950876288, 64694543120, 777746708096
Offset: 1

Views

Author

Vaclav Kotesovec, Apr 29 2011

Keywords

Comments

a(n) is also number of permutations p of 1,2,...,n satisfying |p(i+2k)-p(i)|<>6k AND |p(j+6k)-p(j)|<>2k for all i>=1, j>=1, k>=1, i+2k<=n, j+6k<=n.

Crossrefs

A007631 Number of solutions to non-attacking reflecting queens problem.

Original entry on oeis.org

1, 1, 0, 0, 2, 4, 0, 2, 10, 32, 38, 140, 496, 1186, 3178, 16792, 82038, 289566, 1139874, 5914118, 33800010, 142337180, 721286448, 4384569864
Offset: 0

Views

Author

Keywords

Comments

a(n) is the number of ways to pair the natural numbers from 1 to n with those between n+1 and 2*n into n pairs (xi,yi) such that the 2*n numbers yi+i and yi-i are all different. - Michel Marcus, Apr 27 2016

Examples

			For n = 4, ((1,7), (2,5), (3,8), (4,6)) is an instance of such grouping. ((2,5), (1,7), (3,8), (4,6)) is considered to be the same grouping.
		

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Programs

  • PARI
    a(n) = {nb = 0; for (j=0, n!-1, vp = numtoperm(n, j); vb = vector(n, k, vp[k]+n); vs = vector(n, k, vb[k]+k); vd = vector(n, k, vb[k]-k); if (#vs + #vd == #Set(concat(vs, vd)), nb++); ); nb; } \\ Michel Marcus,  Apr 27 2016

Extensions

a(18)-a(21) from Sean A. Irvine, Jan 13 2018
a(0)-a(3) prepended by Michel Marcus, Oct 03 2018
a(22) from Sean A. Irvine, Oct 04 2018
a(23) from Sean A. Irvine, Oct 07 2018

A062164 Number of ways of placing n nonattacking (normal) queens on n X n board; solutions congruent on the torus count only once.

Original entry on oeis.org

1, 0, 0, 1, 1, 1, 3, 6, 20, 40, 191, 953, 4604, 24660, 158466, 1009395
Offset: 1

Views

Author

Keywords

Comments

In this sequence two n-queens solutions p and q are considered equivalent iff there are natural numbers x and y such that, for all k from {0, ..., n-1}, q (k + x mod n) = p (k) + y mod n, or q is a rotation or a reflection of such a q.
In other words, besides rotations and reflections, also torus shifts are allowed. The sequence reduces the objects of A002562 and via that of A000170. The reduction of A000170 to this sequence is exactly the same as from A007705 to A053994 for torus queens; however, a solution for torus queens remains always a solution after a shift while a normal queens solutions does so only sometimes.
Note that the equivalence classes of this sequence are a subset of A006841. Moreover they are a subset of A062167.

Extensions

Updated link that is transferred from people.freenet.de/nQueens to www.nqueens.de Matthias Engelhardt, Apr 21 2010

A062167 Number of permutations with at most 2 queens on any torus diagonal, solutions congruent on the torus count only once.

Original entry on oeis.org

1, 0, 0, 1, 2, 3, 5, 29, 93, 569, 3226, 28630, 221250, 2314650
Offset: 1

Views

Author

Keywords

Comments

This sequence counts classes of "near n-queens solutions". Permutations with at most 1 queen on any torus diagonal are exactly the torus n queen solutions (A007705), those with at most 2 contain the normal n queen solutions (A000170).
Therefore they may be called "near n-queens solutions". In this sequence, permutations p and q are considered equivalent iff there are natural x and y, such that, for all k from {0, ..., n-1}, q (k + x mod n) = p (k) + y mod n, or q is a rotation or a reflection of such a q. In other words, rotations, reflections and torus shifts are allowed. The sequence contains the objects of A062164.

Extensions

Updated link that is transferred from people.freenet.de/nQueens to www.nqueens.de Matthias Engelhardt, Apr 21 2010

A103330 Number of ways to place n+1 queens and a pawn on an n X n board so that no two queens attack each other.

Original entry on oeis.org

0, 0, 0, 0, 0, 16, 20, 128, 396, 2288, 11152, 65712, 437848, 3118664, 23387448, 183463680, 1474699536, 12485203304, 110956890352, 1028589512656, 9801351322432, 97731300891440, 1014610719838792
Offset: 1

Views

Author

R. Douglas Chatham (d.chatham(AT)moreheadstate.edu), Jan 31 2005

Keywords

Examples

			a(4) = 0 because when 5 queens are placed on a 4 X 4 board, at least 2 queens will be adjacent and therefore mutually attacking.
		

Crossrefs

Extensions

Further terms from R. Douglas Chatham (d.chatham(AT)moreheadstate.edu), Feb 15 2005, Apr 20 2007, Apr 28 2007
a(12) corrected by R. Douglas Chatham (d.chatham(AT)moreheadstate.edu), May 12 2009
a(18)-a(21) from Martin Ehrenstein, Oct 24 2023
a(22) from Martin Ehrenstein, Feb 09 2024
a(23) computed on a GPU using CUDA by Martin Ehrenstein, Aug 10 2025

A140450 The count of how many queens must be placed tentatively onto a board while seeking a first solution to the "N-Queens on an N x N chessboard" puzzle.

Original entry on oeis.org

1, 6, 18, 26, 15, 171, 42, 876, 333, 975, 517, 3066, 1365, 26495, 20280, 160712, 91222, 743229, 48184, 3992510, 179592, 38217905, 584591, 9878316, 1216775, 10339849, 12263400, 84175966, 44434525, 1692888135, 408773285, 2799725104, 4618568460
Offset: 1

Views

Author

Colin S. Pearson and Martin S. Pearson, Jun 26 2008, Jun 30 2008, Jul 03 2008, Jul 31 2008, Aug 16 2008

Keywords

Comments

The term a(4) with the value 26 is the count for a board size of 4 squares by 4 squares. The highest term so far a(45) is the count for a board of 45 squares by 45 squares.
This whole sequence refers only to the number of queen pieces placed tentatively on a board in the hunt for the FIRST POSSIBLE solution for each board size. This sequence makes no reference to queen placements needed to hunt for subsequent solutions that are possible for board sizes above 3x3.

Examples

			Using a simple, mechanical and naive "one queen at a time" algorithm (in other words, a computer-friendly algorithm), in order to place 4 non-clashing queens on a simple board of 4 x 4 squares, we will need to place a tentative new queen 26 times before we discover the first combination that allows all queens to sit unchallenged. For a board size of 5 x 5 we will need to place tentative new queens just 15 times before we discover the first combination of 5 unchallenged queens. In this extended and corrected sequence, those figures "26" and "15" are the values of terms a(4) and a(5) above.
		

References

  • CSP Queens - Counting Queen-placements http://queens.cspea.co.uk/

Crossrefs

Cf. A000170 = Number of ways of placing n nonattacking queens on n X n board; A002562 = Number of ways of placing n nonattacking queens on n X n board (symmetric solutions count only once); A141843 = Triangular array of lexicographically earliest solutions to the n queens problem.

Extensions

Edited by Colin S Pearson to update the URL for Martin S Pearson's website Colin S. Pearson, Mar 25 2009

A146303 Number of distinct ways to place queens (even fewer than n) on an n X n chessboard so that no queen is attacking another and that it is not possible to add another queen.

Original entry on oeis.org

1, 4, 9, 18, 58, 348, 1862, 10188, 57600, 376692, 2640422, 19469324, 151978440, 1258451524, 10963084588, 100087600184
Offset: 1

Views

Author

Paolo Bonzini, Oct 29 2008

Keywords

Comments

In other words, number of maximal independent vertex sets (and minimal vertex covers) in the n X n queen graph. - Eric W. Weisstein, Jun 20 2017

Examples

			The a(2) = 4 solutions are to place a single queen in each of the squares of the chessboard. For n=3, there is a single one-queen solution (placing the queen in b2) and eight two-queen solutions, but no three-queen solution (see A000170).
		

Crossrefs

Extensions

a(12)-a(16) from Stefan Kral, Aug 10 2016

A189841 Number of ways to place n nonattacking composite pieces rook + rider[5,5] on an n X n chessboard.

Original entry on oeis.org

1, 2, 6, 24, 120, 672, 4128, 28992, 231936, 2088960, 20017152, 207208704, 2326900992, 28338241536, 373152276480, 5206300028928
Offset: 1

Views

Author

Vaclav Kotesovec, Apr 29 2011

Keywords

Comments

a(n) is also number of permutations p of 1,2,...,n satisfying |p(j+5k)-p(j)|<>5k for all j>=1, k>=1, j+5k<=n

Crossrefs

A189859 Number of ways to place n nonattacking composite pieces rook + rider[3,5] on an n X n chessboard.

Original entry on oeis.org

1, 2, 6, 24, 120, 464, 2274, 13236, 91760, 740562, 5305548, 43237840, 395858894, 4087066620, 46633569480, 509698057110
Offset: 1

Views

Author

Vaclav Kotesovec, Apr 29 2011

Keywords

Comments

a(n) is also number of permutations p of 1,2,...,n satisfying |p(i+3k)-p(i)|<>5k AND |p(j+5k)-p(j)|<>3k for all i>=1, j>=1, k>=1, i+3k<=n, j+5k<=n

Crossrefs

A189860 Number of ways to place n nonattacking composite pieces rook + rider[3,6] on an n X n chessboard.

Original entry on oeis.org

1, 2, 6, 24, 120, 720, 3312, 18688, 127104, 990208, 8878016, 89267712, 789509184, 7803741824, 85447337472, 1008717911040
Offset: 1

Views

Author

Vaclav Kotesovec, Apr 29 2011

Keywords

Comments

a(n) is also number of permutations p of 1,2,...,n satisfying |p(i+3k)-p(i)|<>6k AND |p(j+6k)-p(j)|<>3k for all i>=1, j>=1, k>=1, i+3k<=n, j+6k<=n

Crossrefs

Previous Showing 41-50 of 89 results. Next