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 21-23 of 23 results.

A350453 Number of Latin squares of order 2n with maximum inner distance with fixed entry 1 in cell (1,1).

Original entry on oeis.org

1, 144, 112, 340, 696, 1468, 2528, 4388, 6760, 10444, 14928, 21364, 28952, 39260, 51136, 66628, 84168, 106348, 131120, 161684, 195448, 236284, 280992, 334180, 391976, 459788, 533008, 617908, 709080, 813724, 925568, 1052804, 1188232, 1341100, 1503216, 1684948
Offset: 1

Views

Author

Omar Aceval Garcia, Dec 31 2021

Keywords

Comments

The inner distance of a matrix with entries in [1,n] is the minimum of distances between vertically or horizontally adjacent entries. For example, every Latin square of order 2, 3, or 4 has inner distance 1, since there are consecutive integers which are adjacent. The distance between x and y in [1,n] with x < y is the minimum of y - x and n + x - y.

Examples

			For example there are 144 Latin squares of order 4 (with a 1 in the top left), all of which have maximum inner distance. There are only 112 such Latin squares of order 6, 340 of order 8, etc.
Every Latin square of order 4 by default has the maximum inner distance; the same is not true for any order higher than 4, which may explain why a(2) > a(3).
		

Crossrefs

Formula

a(n) = 4*n + ( n^2 + 3/2 + (1/2)*(-1)^n )^2 for n >= 3.
a(n) = 4*n + A248800(n)^2 for n >= 3.
For n >= 5, a(n) - a(n-2) = 8*n^3 - 24*n^2 + (44 + 4*(-1)^n)*n - 20 - 4*(-1)^n.
For n >= 7, a(n) = 2*a(n-1) - 2*a(n-3) + a(n-4) + (48 + 16*(-1)^n)*(n-2).
G.f.: x*(1 + 142*x - 178*x^2 - 166*x^3 + 656*x^4 + 62*x^5 - 622*x^6 + 190*x^7 + 207*x^8 - 100*x^9)/((1 - x)^5*(1 + x)). - Stefano Spezia, Jan 01 2022

Extensions

More terms from Jinyuan Wang, Jan 01 2022

A386485 a(0) = 1; thereafter a(n) = 5*n^2 - 5*n + 2.

Original entry on oeis.org

1, 2, 12, 32, 62, 102, 152, 212, 282, 362, 452, 552, 662, 782, 912, 1052, 1202, 1362, 1532, 1712, 1902, 2102, 2312, 2532, 2762, 3002, 3252, 3512, 3782, 4062, 4352, 4652, 4962, 5282, 5612, 5952, 6302, 6662, 7032, 7412, 7802, 8202, 8612, 9032, 9462, 9902, 10352, 10812, 11282, 11762, 12252, 12752, 13262, 13782, 14312
Offset: 0

Views

Author

N. J. A. Sloane, Aug 18 2025

Keywords

Comments

Maximum number of regions that can be formed in the plane by drawing n regular pentagons (of any size). Differs from A062786 and A124080 by a small constant shift, but is included here because of its geometrical applications.

Crossrefs

Programs

  • Mathematica
    A386485[n_] := If[n == 0, 1, 5*n*(n - 1) + 2]; Array[A386485, 60, 0] (* or *)
    LinearRecurrence[{3, -3, 1}, {1, 2, 12, 32}, 60] (* Paolo Xausa, Aug 18 2025 *)

Formula

G.f.: -(x^3+9*x^2-x+1)/(x-1)^3.
From Elmo R. Oliveira, Sep 04 2025: (Start)
E.g.f.: exp(x)*(2 + 5*x^2) - 1.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). (End)

A349803 a(3*n) = 1 + 4*n^2, a(1+3*n) = 2 + 4*n*(n+1), a(2+3*n) = 5 + 4*n*(n+1).

Original entry on oeis.org

1, 2, 5, 5, 10, 13, 17, 26, 29, 37, 50, 53, 65, 82, 85, 101, 122, 125, 145, 170, 173, 197, 226, 229, 257, 290, 293, 325, 362, 365, 401, 442, 445, 485, 530, 533, 577, 626, 629, 677, 730, 733, 785, 842, 845, 901, 962
Offset: 0

Views

Author

Paul Curtz, Dec 01 2021

Keywords

Comments

A261327 sorted in nondecreasing order.

Crossrefs

Cf. A261327.
Trisections: A053755, A069894, A078370.

Programs

  • Mathematica
    nterms=100;LinearRecurrence[{1,0,2,-2,0,-1,1},{1,2,5,5,10,13,17},nterms] (* Paolo Xausa, Dec 01 2021 *)

Formula

a(-n) = a(n) - A099838(n+2).
a(n) = a(n-3) + 4*A004523(n-1) for n >= 3
= a(n-6) + 8*A004396(n-3) for n >= 6
= a(n-9) + 12*A004523(n-4) for n >= 9
= a(n-12) + 16*A004396(n-6) for n >= 12
...
Previous Showing 21-23 of 23 results.