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.
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,-1,1,-2,1).
FORMULA
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
Aaron David Fairbanks, May 17 2023
STATUS
approved