login
A381390
a(n) = 12*n^2 + 4*n + 1.
1
1, 17, 57, 121, 209, 321, 457, 617, 801, 1009, 1241, 1497, 1777, 2081, 2409, 2761, 3137, 3537, 3961, 4409, 4881, 5377, 5897, 6441, 7009, 7601, 8217, 8857, 9521, 10209, 10921, 11657, 12417, 13201, 14009, 14841, 15697, 16577, 17481, 18409, 19361, 20337, 21337
OFFSET
0,2
COMMENTS
Number of points in a square lattice enclosed by the four-pointed star figure with vertices at points (3n, 0), (n, n), (0, 3n), (-n, n), (-3n, 0), (-n, -n), (0, -3n), (n, -n).
Sequence found by reading the line from 1, in the direction 1, 17, ..., in the square spiral whose vertices are the generalized octagonal numbers A001082. - Omar E. Pol, Mar 06 2025
FORMULA
From Elmo R. Oliveira, Aug 21 2025: (Start)
G.f.: (1 + 14*x + 9*x^2)/(1 - x)^3.
E.g.f.: (1 + 16*x + 12*x^2)*exp(x).
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). (End)
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 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 17 57
MATHEMATICA
A381390[n_] := 4*n*(3*n + 1) + 1; Array[A381390, 50, 0] (* Paolo Xausa, Aug 22 2025 *)
CROSSREFS
Cf. A001082.
Sequence in context: A253417 A117390 A141841 * A146682 A146650 A147131
KEYWORD
nonn,easy
AUTHOR
STATUS
approved