login
A356047
The number of links of a polyline that connects the midpoints of opposite sides of the n-th regular integer hexagon and has the following properties: the first link is 1; each subsequent one is 1 more than the previous one; the angle between adjacent links is equal to Pi/3; links of the same parity are parallel.
2
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,1
COMMENTS
The number of links a(n) is determined using a triangular grid from the dependence of the integer side of the hexagon on a(n), which reduces to nontrivial solutions to the Pell equation x^2 - 3y^2 = 1 for even x.
In the definition, "n-th regular integer hexagon" means the n-th integer-sided regular hexagon such that the polyline described in the name is possible. These hexagons have sides A357733(n). - Andrey Zabolotskiy, Jul 30 2022
LINKS
Alexander M. Domashenko, Problem: Snake in a hexagon (in Russian).
Alexander M. Domashenko, Problem 2211: Sixth hexagon (in Russian).
FORMULA
For odd n: a(n) = 3*y(n) - 1 from the nontrivial solution of the equation x^2 - 3y^2 = 1;
for even n: a(n) = 3*y(n-1) from the nontrivial solution 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)
EXAMPLE
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.
MATHEMATICA
LinearRecurrence[{0, 15, 0, -15, 0, 1}, {2, 3, 44, 45, 626, 627}, 30] (* Paolo Xausa, Oct 03 2024 *)
CROSSREFS
Sequence in context: A100015 A317672 A352003 * A042819 A218002 A339058
KEYWORD
nonn,easy
AUTHOR
STATUS
approved