|
|
A022266
|
|
a(n) = n*(9*n - 1)/2.
|
|
14
|
|
|
0, 4, 17, 39, 70, 110, 159, 217, 284, 360, 445, 539, 642, 754, 875, 1005, 1144, 1292, 1449, 1615, 1790, 1974, 2167, 2369, 2580, 2800, 3029, 3267, 3514, 3770, 4035, 4309, 4592, 4884, 5185, 5495, 5814, 6142, 6479, 6825, 7180, 7544, 7917, 8299, 8690, 9090, 9499
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
Write 0,1,2,3,4,... in a triangular spiral, then a(n) is the sequence found by reading the line from 0 in the direction 0,4,...
The spiral begins:
15
/ \
16 14
/ \
17 3 13
/ / \ \
18 4 2 12
/ / \ \
19 5 0---1 11
/ / \
20 6---7---8---9--10
(End)
a(n) with n>0 are the numbers with period length 3 in Bulgarian and Mancala solitaire. - Paul Weisenhorn Jan 29 2022
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n > 2.
a(n) = (1/7) * Sum_{i=n..(8*n-1)} i. (End)
|
|
MAPLE
|
|
|
MATHEMATICA
|
LinearRecurrence[{3, -3, 1}, {0, 4, 17}, 50] (* Harvey P. Dale, Aug 06 2023 *)
|
|
PROG
|
|
|
CROSSREFS
|
Cf. similar sequences listed in A022288.
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|