login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A363080
Number of hexagonal lattice points within a hexagram centered at a lattice point and with outermost vertices at the six lattice points n steps outward from the central point.
0
1, 7, 13, 25, 43, 61, 85, 115, 145, 181, 223, 265, 313, 367, 421, 481, 547, 613, 685, 763, 841, 925, 1015, 1105, 1201, 1303, 1405, 1513, 1627, 1741, 1861, 1987, 2113, 2245, 2383, 2521, 2665, 2815, 2965, 3121, 3283, 3445, 3613, 3787, 3961, 4141, 4327, 4513, 4705, 4903, 5101, 5305, 5515, 5725
OFFSET
0,2
COMMENTS
In contrast, A003154 (the star numbers) counts the hexagonal lattice points within a hexagram centered at a lattice point and with the vertices of the central hexagon at the six lattice points a given number of steps outward from the central point.
Besides the first term, the first differences are given by six times A004396.
A005448 (the centered triangular numbers) counts just the lattice points within one of the two triangles that make up the hexagram.
FORMULA
a(n) = 6*ceiling(n*(n+1)/3) + 1.
a(n) = 6*A007980(n-1) + 1 for n >= 1.
a(n+1) - a(n) = 6*A004396(n+1).
a(3n) = A081272(n).
EXAMPLE
Illustration of initial terms:
.
. o o
. o o o o o
. o o o o o o o o
. o o o o o o o o o o o o o o o o
. o o o o o o o o
. o o o o o
. o o
.
. 1 7 13 25
.
MATHEMATICA
Table[6*Ceiling[n*(n + 1)/3] + 1, {n, 0, 60}] (* Amiram Eldar, Jul 28 2023 *)
PROG
(PARI) a(n) = 6*ceil(n*(n+1)/3) + 1; \\ Michel Marcus, Jun 14 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved