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-9 of 9 results.

A051568 Let M(n) (A051755) be the maximal number of queens that can be placed on an n X n chessboard so that each queen attacks exactly two other queens; a(n) is the number of non-equivalent solutions. "Non-equivalent" means none of the a(n) solutions can be mapped onto any other solution by board rotations through 90, 180 or 270 degrees or mirror operations along the two diagonals or center lines.

Original entry on oeis.org

4, 2, 1, 1, 5, 2, 15, 3
Offset: 3

Views

Author

N. J. A. Sloane, Dec 11 1999

Keywords

References

  • M. Gardner, The Last Recreations, Springer, 1997, p. 282.
  • M. Gardner, The Colossal Book of Mathematics, 2001, p. 209.

Crossrefs

Extensions

More precise definition from R. J. Mathar, Mar 13 2006
Edited by N. J. A. Sloane, May 22 2014

A051758 Consider problem of placing A051755(n) queens on an n X n board so that each queen attacks precisely 2 others. Sequence gives number of solutions up to square symmetry.

Original entry on oeis.org

1, 4, 2, 1, 1, 5, 2, 15
Offset: 2

Views

Author

Robert Trent (trentrd(AT)hotmail.com), Aug 23 2000

Keywords

Crossrefs

Extensions

a(9) from Sean A. Irvine, Oct 05 2021

A299174 The positive even integers.

Original entry on oeis.org

2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144
Offset: 1

Views

Author

Joss Langford, Feb 04 2018

Keywords

Comments

Possible periods of Post's {00, 1101} tag system. - Charles R Greathouse IV, Dec 13 2021
Numbers m such that 2^m - m is divisible by 2. - Bernard Schott, Dec 15 2021

Crossrefs

Equals A005843 without the leading zero.
Bisection of A000027. Complement of A004273. - Omar E. Pol, Feb 25 2018
First row of A083140.
Cf. A005408.
Essentially the same as A163300, A103517, A051755, A005843 and A004277.

Programs

Formula

a(n) = 2*n, n >= 1.
G.f.: 2*x/(1 - x)^2; corrected by Ilya Gutkovskiy, Mar 29 2018
a(n) = 2*a(n-1) - a(n-2). - Wesley Ivan Hurt, Jul 17 2025

A051754 Consider problem of placing N queens on an n X n board so that each queen attacks precisely 1 other. Sequence gives maximal number of queens.

Original entry on oeis.org

2, 2, 4, 4, 8, 8, 10, 12, 12, 14, 16, 16, 18, 20, 20, 22, 24, 24, 26, 28, 28, 30, 32, 32, 34, 36, 36, 38, 40, 40, 42, 44, 44, 46, 48, 48, 50, 52, 52, 54, 56, 56, 58, 60, 60, 62, 64, 64, 66, 68, 68, 70, 72, 72, 74, 76, 76, 78, 80, 80, 82, 84, 84, 86
Offset: 2

Views

Author

Robert Trent (trentrd(AT)hotmail.com), Aug 23 2000

Keywords

Comments

2*[2n/3] is an upper bound for a(n). - Jud McCranie, Aug 12 2001
This bound is achieved for n=2, 4 and 6-65.
Conjecture: a(n) = 2*[2n/3] for n >= 6. - Alexander D. Healy, Feb 10 2024

References

  • Martin Gardner, The Last Recreations, Copernicus, NY, 1997, 274-283.

Crossrefs

Extensions

a(12)-a(65) from Alexander D. Healy, Feb 10 2024

A103517 Expansion of (1+2*x-x^2)/(1-x)^2.

Original entry on oeis.org

1, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126
Offset: 0

Views

Author

Paul Barry, Feb 09 2005

Keywords

Comments

Row sums of A103516.
Also the number of maximal and maximum cliques in the (n+1) X (n+1) rook graph. - Eric W. Weisstein, Sep 14 2017
Also the number of maximal and maximum independent vertex sets in the (n+1) X (n+1) rook complement graph. - Eric W. Weisstein, Sep 14 2017

Crossrefs

Cf. A103516.
Essentially the same as A004277, A005843, A051755, and A076032. - R. J. Mathar, Jul 31 2010
Cf. A272651 (for which this sequence is a conjectured continuation for large n).

Programs

Formula

a(n) = 2*n + 2 - 0^n.
a(n) = Sum_{k=0..n} 0^(k(n-k))*(n+1).
Equals binomial transform of [1, 3, -1, 1, -1, 1, ...]. - Gary W. Adamson, Apr 23 2008
a(n) = 2*a(n-1) - a(n-2) for n > 2. - Eric W. Weisstein, Sep 14 2017
G.f.: (1 + 2*x - x^2)/(-1 + x)^2. - Eric W. Weisstein, Sep 14 2017

A051756 Consider the problem of placing N queens on an n X n board so that each queen attacks precisely 3 others. Sequence gives maximal number of queens.

Original entry on oeis.org

4, 6, 8, 10, 12, 16, 18, 20, 22, 24, 28, 30, 32, 34, 36, 40, 42, 44, 46, 48, 52, 54, 56, 58, 60, 64, 66, 68, 70, 72, 76, 78, 80, 82, 84, 88, 90, 92, 94, 96, 100, 102, 104, 106, 108, 112, 114, 116, 118, 120, 124, 126, 128, 130, 132, 136, 138, 140, 142, 144
Offset: 2

Views

Author

Robert Trent (trentrd(AT)hotmail.com), Aug 23 2000

Keywords

Comments

a(n) <= 2[(6n-2)/5]. - Jud McCranie, Aug 12 2001
Conjecture: a(n) = 2[(6n-2)/5] for n >= 2; verified up to n = 100. - Alexander D. Healy, Feb 11 2024

Examples

			Examples from _R. J. Mathar_, May 01 2006: (Start)
==== n = 3
6 queens:
Q Q Q
Q - -
Q - Q
6 queens:
Q Q Q
- - -
Q Q Q
==== n = 4
8 queens:
Q Q Q Q
Q - - -
Q - - -
Q - - Q
8 queens:
Q Q Q Q
Q - - -
- - Q -
Q - - Q
8 queens:
Q Q Q Q
- - - -
- - - -
Q Q Q Q
8 queens:
Q Q - Q
- Q - -
- - Q -
Q - Q Q
==== n = 7
16 queens:
Q Q Q - Q - Q
- - - - - - Q
- - - Q - - -
Q - - - - - Q
- - - Q - - -
Q - - - - - -
Q - Q - Q Q Q
16 queens:
Q Q Q - - Q Q
- - - Q - - -
- - - - - - Q
Q - - - - - Q
Q - - - - - -
- - - Q - - -
Q Q - - Q Q Q
(End)
		

References

  • Martin Gardner, The Last Recreations, Copernicus, NY, 1997, 274-283.
  • Peter Hayes, A Problem of Chess Queens, Journal of Recreational Mathematics, Baywood, 24(4), 1992, 264-271.

Crossrefs

Extensions

More terms from Jud McCranie, Aug 12 2001
a(10)-a(61) from Alexander D. Healy, Feb 11 2024

A303273 Array T(n,k) = binomial(n, 2) + k*n + 1 read by antidiagonals.

Original entry on oeis.org

1, 1, 1, 1, 2, 2, 1, 3, 4, 4, 1, 4, 6, 7, 7, 1, 5, 8, 10, 11, 11, 1, 6, 10, 13, 15, 16, 16, 1, 7, 12, 16, 19, 21, 22, 22, 1, 8, 14, 19, 23, 26, 28, 29, 29, 1, 9, 16, 22, 27, 31, 34, 36, 37, 37, 1, 10, 18, 25, 31, 36, 40, 43, 45, 46, 46, 1, 11, 20, 28, 35, 41
Offset: 0

Views

Author

Keywords

Comments

Columns are linear recurrence sequences with signature (3,-3,1).
8*T(n,k) + A166147(k-1) are squares.
Columns k are binomial transforms of [1, k, 1, 0, 0, 0, ...].
Antidiagonals sums yield A116731.

Examples

			The array T(n,k) begins
1    1    1    1    1    1    1    1    1    1    1    1    1  ...  A000012
1    2    3    4    5    6    7    8    9   10   11   12   13  ...  A000027
2    4    6    8   10   12   14   16   18   20   22   24   26  ...  A005843
4    7   10   13   16   19   22   25   28   31   34   37   40  ...  A016777
7   11   15   19   23   27   31   35   39   43   47   51   55  ...  A004767
11  16   21   26   31   36   41   46   51   56   61   66   71  ...  A016861
16  22   28   34   40   46   52   58   64   70   76   82   88  ...  A016957
22  29   36   43   50   57   64   71   78   85   92   99  106  ...  A016993
29  37   45   53   61   69   77   85   93  101  109  117  125  ...  A004770
37  46   55   64   73   82   91  100  109  118  127  136  145  ...  A017173
46  56   66   76   86   96  106  116  126  136  146  156  166  ...  A017341
56  67   78   89  100  111  122  133  144  155  166  177  188  ...  A017401
67  79   91  103  115  127  139  151  163  175  187  199  211  ...  A017605
79  92  105  118  131  144  157  170  183  196  209  222  235  ...  A190991
...
The inverse binomial transforms of the columns are
1    1    1    1    1    1    1    1    1    1    1    1    1  ...
0    1    2    3    4    5    6    7    8    9   10   11   12  ...
1    1    1    1    1    1    1    1    1    1    1    1    1  ...
0    0    0    0    0    0    0    0    0    0    0    0    0  ...
0    0    0    0    0    0    0    0    0    0    0    0    0  ...
0    0    0    0    0    0    0    0    0    0    0    0    0  ...
...
T(k,n-k) = A087401(n,k) + 1 as triangle
1
1   1
1   2   2
1   3   4   4
1   4   6   7   7
1   5   8  10  11  11
1   6  10  13  15  16  16
1   7  12  16  19  21  22  22
1   8  14  19  23  26  28  29  29
1   9  16  22  27  31  34  36  37  37
1  10  18  25  31  36  40  43  45  46  46
...
		

References

  • R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics: A Foundation for Computer Science, Addison-Wesley, 1994.

Crossrefs

Programs

  • Maple
    T := (n, k) -> binomial(n, 2) + k*n + 1;
    for n from 0 to 20 do seq(T(n, k), k = 0 .. 20) od;
  • Mathematica
    Table[With[{n = m - k}, Binomial[n, 2] + k n + 1], {m, 0, 11}, {k, m, 0, -1}] // Flatten (* Michael De Vlieger, Apr 21 2018 *)
  • Maxima
    T(n, k) := binomial(n, 2)+ k*n + 1$
    for n:0 thru 20 do
        print(makelist(T(n, k), k, 0, 20));
    
  • PARI
    T(n,k) = binomial(n, 2) + k*n + 1;
    tabl(nn) = for (n=0, nn, for (k=0, nn, print1(T(n, k), ", ")); print); \\ Michel Marcus, May 17 2018

Formula

G.f.: (3*x^2*y - 3*x*y + y - 2*x^2 + 2*x - 1)/((x - 1)^3*(y - 1)^2).
E.g.f.: (1/2)*(2*x*y + x^2 + 2)*exp(y + x).
T(n,k) = 3*T(n-1,k) - 3*T(n-2,k) + T(n-3,k), with T(0,k) = 1, T(1,k) = k + 1 and T(2,k) = 2*k + 2.
T(n,k) = T(n-1,k) + n + k - 1.
T(n,k) = T(n,k-1) + n, with T(n,0) = 1.
T(n,0) = A152947(n+1).
T(n,1) = A000124(n).
T(n,2) = A000217(n).
T(n,3) = A034856(n+1).
T(n,4) = A052905(n).
T(n,5) = A051936(n+4).
T(n,6) = A246172(n+1).
T(n,7) = A302537(n).
T(n,8) = A056121(n+1) + 1.
T(n,9) = A056126(n+1) + 1.
T(n,10) = A051942(n+10) + 1, n > 0.
T(n,11) = A101859(n) + 1.
T(n,12) = A132754(n+1) + 1.
T(n,13) = A132755(n+1) + 1.
T(n,14) = A132756(n+1) + 1.
T(n,15) = A132757(n+1) + 1.
T(n,16) = A132758(n+1) + 1.
T(n,17) = A212427(n+1) + 1.
T(n,18) = A212428(n+1) + 1.
T(n,n) = A143689(n) = A300192(n,2).
T(n,n+1) = A104249(n).
T(n,n+2) = T(n+1,n) = A005448(n+1).
T(n,n+3) = A000326(n+1).
T(n,n+4) = A095794(n+1).
T(n,n+5) = A133694(n+1).
T(n+2,n) = A005449(n+1).
T(n+3,n) = A115067(n+2).
T(n+4,n) = A133694(n+2).
T(2*n,n) = A054556(n+1).
T(2*n,n+1) = A054567(n+1).
T(2*n,n+2) = A033951(n).
T(2*n,n+3) = A001107(n+1).
T(2*n,n+4) = A186353(4*n+1) (conjectured).
T(2*n,n+5) = A184103(8*n+1) (conjectured).
T(2*n,n+6) = A250657(n-1) = A250656(3,n-1), n > 1.
T(n,2*n) = A140066(n+1).
T(n+1,2*n) = A005891(n).
T(n+2,2*n) = A249013(5*n+4) (conjectured).
T(n+3,2*n) = A186384(5*n+3) = A186386(5*n+3) (conjectured).
T(2*n,2*n) = A143689(2*n).
T(2*n+1,2*n+1) = A143689(2*n+1) (= A030503(3*n+3) (conjectured)).
T(2*n,2*n+1) = A104249(2*n) = A093918(2*n+2) = A131355(4*n+1) (= A030503(3*n+5) (conjectured)).
T(2*n+1,2*n) = A085473(n).
a(n+1,5*n+1)=A051865(n+1) + 1.
a(n,2*n+1) = A116668(n).
a(2*n+1,n) = A054569(n+1).
T(3*n,n) = A025742(3*n-1), n > 1 (conjectured).
T(n,3*n) = A140063(n+1).
T(n+1,3*n) = A069099(n+1).
T(n,4*n) = A276819(n).
T(4*n,n) = A154106(n-1), n > 0.
T(2^n,2) = A028401(n+2).
T(1,n)*T(n,1) = A006000(n).
T(n*(n+1),n) = A211905(n+1), n > 0 (conjectured).
T(n*(n+1)+1,n) = A294259(n+1).
T(n,n^2+1) = A081423(n).
T(n,A000217(n)) = A158842(n), n > 0.
T(n,A152947(n+1)) = A060354(n+1).
floor(T(n,n/2)) = A267682(n) (conjectured).
floor(T(n,n/3)) = A025742(n-1), n > 0 (conjectured).
floor(T(n,n/4)) = A263807(n-1), n > 0 (conjectured).
ceiling(T(n,2^n)/n) = A134522(n), n > 0 (conjectured).
ceiling(T(n,n/2+n)/n) = A051755(n+1) (conjectured).
floor(T(n,n)/n) = A133223(n), n > 0 (conjectured).
ceiling(T(n,n)/n) = A007494(n), n > 0.
ceiling(T(n,n^2)/n) = A171769(n), n > 0.
ceiling(T(2*n,n^2)/n) = A046092(n), n > 0.
ceiling(T(2*n,2^n)/n) = A131520(n+2), n > 0.

A123031 Array read by antidiagonals: row i (i>=0) contains those positive integers n >= 2 for which the multiset { n mod k : k=2,3,...,n } contains exactly one copy of i.

Original entry on oeis.org

2, 3, 3, 5, 4, 5, 7, 6, 6, 7, 9, 8, 7, 8, 11, 11, 10, 9, 9, 12, 13, 13, 12, 11, 10, 13, 14, 17, 15, 14, 13, 12, 12, 15, 18, 19, 17, 16, 15, 14, 13, 14, 19, 20, 23, 19, 18, 17, 16, 15, 15, 16, 21, 24, 29, 21, 20, 19, 18, 17, 16, 17, 20, 25, 30, 31, 23, 22, 21, 20, 19, 18, 18, 21, 22
Offset: 1

Views

Author

Jared B. Ricks (jaredricks(AT)yahoo.com), Sep 24 2006

Keywords

Comments

In other words, for i >= 1, the i-th row contains all numbers n>2i such that n-i does not have divisors d with i < d < n-i. If p is the smallest prime divisor of n-i then (n-i)/p <= i.
Alternatively, the i-th row (i>=1) consists of 2i+1 and positive integers n>2i+1 such that the smallest prime divisor of n-i is greater than or equal to (n-i)/i = n/i - 1.

Examples

			For example, the 0th row obviously contains all prime numbers.
The first few rows of the array are
0) 2, 3, 5, 7, 11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,
1) 3, 4, 6, 8, 12,14,18,20,24,30,32,38,42,44,48,54,60,62,68,72,74,80,84,90,98,
2) 5, 6, 7, 9, 13,15,19,21,25,31,33,39,43,45,49,55,61,63,69,73,75,81,85,91,99,
3) 7, 8, 9, 10,12,14,16,20,22,26,32,34,40,44,46,50,56,62,64,70,74,76,82,86,92,
4) 9, 10,11,12,13,15,17,21,23,27,33,35,41,45,47,51,57,63,65,71,75,77,83,87,93,
5) 11,12,13,14,15,16,18,20,22,24,28,30,34,36,42,46,48,52,58,64,66,72,76,78,84,
6) 13,14,15,16,17,18,19,21,23,25,29,31,35,37,43,47,49,53,59,65,67,73,77,79,85,
...
		

Crossrefs

Rows: A000040, A008864, ...; columns: A004280, A051755, ...; diagonal starting with 2: A033627.

Extensions

Additional comments from Max Alekseyev, Sep 26 2006

A361871 The smallest order of a non-abelian group with an element of order n.

Original entry on oeis.org

6, 6, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120
Offset: 1

Views

Author

Yue Yu, Apr 01 2023

Keywords

Crossrefs

Essentially the same as A163300, A103517, A051755.

Formula

a(n) = 2*n for n >= 3.
Proof: By Lagrange's theorem in group theory we have that n divides a(n) for all n. A group of order n and with an element of order n is the cyclic group of order n, hence being abelian. On the other hand, the dihedral group D_{2n} is non-abelian for n >= 3 and contains an element of order n. - Jianing Song, Aug 11 2023
Showing 1-9 of 9 results.