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.

A356047 The number of links of a qualifying "snake" polyline that connects the midpoints of opposite sides of the n-th regular integer hexagon that allows such a construction.

Original entry on oeis.org

2, 3, 44, 45, 626, 627, 8732, 8733, 121634, 121635, 1694156, 1694157, 23596562, 23596563, 328657724, 328657725, 4577611586, 4577611587, 63757904492, 63757904493, 888033051314, 888033051315, 12368704813916, 12368704813917, 172273834343522, 172273834343523, 2399464975995404, 2399464975995405, 33420235829592146, 33420235829592147
Offset: 1

Views

Author

Keywords

Comments

A polyline qualifies if its n-th link has length n; the angle between adjacent links is Pi/3; and links of the same parity are parallel.
Finding the possible numbers of links reduces to finding nontrivial solutions to the Pell equation x^2 - 3y^2 = 1 for even x. See the formulas below.

Examples

			a(1) = 2, since the first nontrivial pair (2;1) of the Pell equation x^2 - 3y^2 = 1 determines a(1) = 3*y(1) - 1 = 3*1 - 1 = 2 and in a hexagon with side 1 a broken line of two links connects the midpoints of its opposite sides.
a(2) = 3, since the first nontrivial pair (2;1) of the Pell equation x^2 - 3y^2 = 1 determines a(2) = 3*y(2 -1) = 3 and in a hexagon with side 2 a broken line of three links connects the midpoints of its opposite sides.
a(3) = 44, since the third nontrivial pair (26;15) of the Pell equation x^2 - 3y^2 = 1 determines a(3) = 3*y(3) - 1 = 3*15 - 1 = 44.
a(4) = 45, since the third nontrivial pair (26;15) of the Pell equation x^2 - 3y^2 = 1 determines a(4) = 3*y(4 -1) = 3*15 = 45.
		

Crossrefs

Cf. A001353, A357733 (sides of the hexagons).

Programs

  • Mathematica
    LinearRecurrence[{0, 15, 0, -15, 0, 1}, {2, 3, 44, 45, 626, 627}, 30] (* Paolo Xausa, Oct 03 2024 *)

Formula

a(2n-1) = 3*y(2n-1) - 1, a(2n) = 3*y(2n-1) from the nontrivial solutions of the equation x^2 - 3y^2 = 1.
Here y(n) = A001353(n). - Andrey Zabolotskiy, Oct 16 2022
From Chai Wah Wu, Mar 13 2023: (Start)
a(n) = 15*a(n-2) - 15*a(n-4) + a(n-6) for n > 6.
G.f.: x*(-2-3*x-14*x^2+4*x^4+3*x^5) / ( (x-1)*(1+x)*(x^2-4*x+1)*(x^2+4*x+1) ). (End)

Extensions

Edited by Peter Munn, Jan 31 2025, incorporating insight from Andrey Zabolotskiy into the name.