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”).

A244804
The 300-degree spoke (or ray) of a hexagonal spiral of Ulam.
7
1, 14, 51, 112, 197, 306, 439, 596, 777, 982, 1211, 1464, 1741, 2042, 2367, 2716, 3089, 3486, 3907, 4352, 4821, 5314, 5831, 6372, 6937, 7526, 8139, 8776, 9437, 10122, 10831, 11564, 12321, 13102, 13907, 14736, 15589, 16466, 17367, 18292, 19241, 20214, 21211, 22232, 23277, 24346, 25439
OFFSET
1,2
FORMULA
See A056105 example section for its formula.
From Colin Barker, Dec 12 2016: (Start)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n>3.
G.f.: x*(1 + 11*x + 12*x^2) / (1 - x)^3.
(End)
EXAMPLE
See A056105 example section for its diagram.
MAPLE
A244804:=n->12*n^2 - 23*n + 12: seq(A244804(n), n=1..50); # Wesley Ivan Hurt, Jul 06 2014
MATHEMATICA
f[n_] := 12n^2 - 23n + 12; Array[f, 47]
PROG
(PARI) vector(50, n, 12*n^2 - 23*n + 12) \\ Michel Marcus, Jul 06 2014
(PARI) Vec(x*(1 + 11*x + 12*x^2) / (1 - x)^3 + O(x^50)) \\ Colin Barker, Dec 12 2016
(Magma) [ 12*n^2 - 23*n + 12 : n in [1..50] ]; // Wesley Ivan Hurt, Jul 06 2014
KEYWORD
nonn,easy
AUTHOR
Robert G. Wilson v, Jul 06 2014
STATUS
approved