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 11-13 of 13 results.

A187242 Number of ways to place 10 nonattacking bishops on an n X n board.

Original entry on oeis.org

0, 0, 0, 0, 0, 64, 81184, 12448832, 627961728, 15915225216, 251806066272, 2814607288320, 24088436720256, 166645918174848, 969258913391552, 4878776675787392, 21731689658569984, 87161301448676352, 319192073724720448, 1079363369445639936, 3401826465353378560, 10070308904424957632, 28183638842590122720
Offset: 1

Views

Author

Vaclav Kotesovec, Mar 07 2011

Keywords

Crossrefs

Programs

  • Mathematica
    CoefficientList[Series[- 32 x^5 (113400 x^29 + 2518560 x^28 + 55426428 x^27 + 713122128 x^26 + 7133734665 x^25 + 51575533686 x^24 + 289157705424 x^23 + 1253334719652 x^22 + 4339842816598 x^21 + 12089938835312 x^20 + 27595185140132 x^19 + 51899069651452 x^18 + 81237872407883 x^17 + 106097483667238 x^16 + 116126611566624 x^15 + 106417824457960 x^14 + 81632991696988 x^13 + 52161861060464 x^12 + 27621327391332 x^11 + 11998025297736 x^10 + 4224689442543 x^9 + 1183463783138 x^8 + 257650398544 x^7 + 42074808244 x^6 + 4911799606 x^5 + 379785344 x^4 + 17289788 x^3 + 373804 x^2 + 2525 x + 2) / ((x - 1)^21 (x + 1)^15), {x, 0, 50}], x] (* Vincenzo Librandi, Jun 02 2013 *)

Formula

a(n) = n^20/3628800 - n^19/60480 + 341n^18/725760 - 45949n^17/5443200 + 235433n^16/2177280 - 308291n^15/291600 + 14982871n^14/1814400 - 43484267n^13/816480 + 175706737n^12/604800 - 2444962049n^11/1796256 + 30003106793n^10/5443200 - 44899907477n^9/2332800 + 9919713547n^8/172800 - 18390588424n^7/127575 + 217346831209n^6/725760 - 8233418533709n^5/16329600 + 104224385179n^4/155520 - 14600765627n^3/21600 + 583132621007n^2/1209600 - 46669993739n/221760 + 19990663/512 + (-n^14/40320 + n^13/720 - 1267n^12/34560 + 15721n^11/25920 - 730663n^10/103680 + 5532407n^9/90720 - 98193341n^8/241920 + 10640393n^7/5040 - 99209431n^6/11520 + 1417368727n^5/51840 - 686809973n^4/10368 + 2144839679n^3/18144 - 1683044471n^2/11520 + 2242597633n/20160 - 19990663/512)*(-1)^n.
G.f.: -32x^6*(113400x^29 + 2518560x^28 + 55426428x^27 + 713122128x^26 + 7133734665x^25 + 51575533686x^24 + 289157705424x^23 + 1253334719652x^22 + 4339842816598x^21 + 12089938835312x^20 + 27595185140132x^19 + 51899069651452x^18 + 81237872407883x^17 + 106097483667238x^16 + 116126611566624x^15 + 106417824457960x^14 + 81632991696988x^13 + 52161861060464x^12 + 27621327391332x^11 + 11998025297736x^10 + 4224689442543x^9 + 1183463783138x^8 + 257650398544x^7 + 42074808244x^6 + 4911799606x^5 + 379785344x^4 + 17289788x^3 + 373804x^2 + 2525x + 2)/((x-1)^21*(x+1)^15).
a(10) = A002465(10).

A172210 Number of ways to place 5 nonattacking bishops on a 5 X n board.

Original entry on oeis.org

1, 12, 143, 770, 3368, 12632, 38566, 98968, 222351, 450682, 843169, 1479116, 2460912, 3917228, 6006056, 8917888, 12878847, 18153806, 25049515, 33917724, 45158308, 59222392, 76615476, 97900560, 123701269, 154704978, 191665937, 235408396, 286829730, 346903564
Offset: 1

Views

Author

Vaclav Kotesovec, Jan 29 2010

Keywords

Crossrefs

Programs

  • Mathematica
    CoefficientList[Series[(2 x^20 - 4 x^19 + 8 x^18 - 12 x^17 - 48 x^16 + 140 x^15 - 158 x^14 + 208 x^13 + 134 x^12 - 932 x^11 + 1048*x^10 -182*x^9+ 436 * x^8 + 396 x^7 - 32 x^6 + 1288 * x^5 + 668 * x^4 + 72 * x^3 + 86 * x^2 + 6 * x + 1) / (x - 1)^6, {x, 0, 50}], x] (* Vincenzo Librandi, May 27 2013 *)

Formula

a(n) = (625n^5-11250n^4+98875n^3-515250n^2+1566016n-2194944)/24, n>=16.
G.f.: x*(2*x^20 -4*x^19 +8*x^18 -12*x^17 -48*x^16 +140*x^15 -158*x^14 +208*x^13 +134*x^12 -932*x^11 +1048*x^10 -182*x^9 +436*x^8 +396*x^7 -32*x^6 +1288*x^5 +668*x^4 +72*x^3 +86*x^2 +6*x+1)/(x-1)^6. - Vaclav Kotesovec, Mar 25 2010

A378590 Total number of ways to place k nonattacking bishops on an n X n chess board. Triangle T(n,k) read by rows (0 <= k <= 2*n-[n>0]-[n>1]).

Original entry on oeis.org

1, 1, 1, 1, 4, 4, 1, 9, 26, 26, 8, 1, 16, 92, 232, 260, 112, 16, 1, 25, 240, 1124, 2728, 3368, 1960, 440, 32, 1, 36, 520, 3896, 16428, 39680, 53744, 38368, 12944, 1600, 64, 1, 49, 994, 10894, 70792, 282248, 692320, 1022320, 867328, 389312, 81184, 5792, 128
Offset: 0

Views

Author

Eder G. Santos, Dec 01 2024

Keywords

Comments

The sequence counts every possible nonattacking configuration of k bishops on an n x n chess board.

Examples

			Triangle begins:
  1;
  1  1;
  1  4   4;
  1  9  26    26     8;
  1 16  92   232   260    112     16;
  1 25 240  1124  2728   3368   1960     440     32;
  1 36 520  3896 16428  39680  53744   38368  12944   1600    64;
  1 49 994 10894 70792 282248 692320 1022320 867328 389312 81184 5792 128;
  ...
For example, for n = 2, k=2, the T(2,2)=4 nonattacking configurations are:
  +---+---+   +---+---+   +---+---+   +---+---+
  | B | B |   | B |   |   |   | B |   |   |   |
  +---+---+ , +---+---+ , +---+---+ , +---+---+
  |   |   |   | B |   |   |   | B |   | B | B |
  +---+---+   +---+---+   +---+---+   +---+---+
		

Crossrefs

Columns k=0-1 give: A000012, A000290.
Columns k=2-10 for n>=1 give: A172123, A172124, A172127, A172129, A176886, A187239, A187240, A187241, A187242.
Main diagonal T(n,n) gives A002465.
Row sums give A201862.
Cf. A000079.

Programs

  • SageMath
    def stirling2_negativek(n,k):
      if k < 0: return 0
      else: return stirling_number2(n,k)
    print([sum([sum([binomial(floor(n/2),i)*stirling2_negativek(n-i,n-j)*sum([binomial(ceil(n/2),l)*stirling2_negativek(n-l,n-k+j) for l in [0..k-j]]) for i in [0..j]]) for j in [0..k]]) for n in [0..10] for k in [0..2*n-2+kronecker_delta(n,1)+2*kronecker_delta(n,0)]])

Formula

T(n,k) = Sum_{j=0..k} (Sum_{i=0..j} binomial(floor(n/2),i) * Stirling2(n-i,n-j)) * (Sum_{l=0..k-j} binomial(ceiling(n/2),l) * Stirling2(n-l,n-k+j)).
T(n,2*n-2+delta(n,1)+2*delta(n,0)) = A000079(n)-delta(n,1).
Previous Showing 11-13 of 13 results.