|
|
A367204
|
|
Number of diagonals in a regular n-gon that are parallel to an edge.
|
|
4
|
|
|
0, 0, 5, 3, 14, 8, 27, 15, 44, 24, 65, 35, 90, 48, 119, 63, 152, 80, 189, 99, 230, 120, 275, 143, 324, 168, 377, 195, 434, 224, 495, 255, 560, 288, 629, 323, 702, 360, 779, 399, 860, 440, 945, 483, 1034, 528, 1127, 575, 1224, 624, 1325, 675, 1430, 728, 1539, 783
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
3,3
|
|
COMMENTS
|
A diagonal is parallel to an edge if and only if, on at least one side of the diagonal, there is an odd number of edges.
If n is odd, all of the diagonals of the n-gon are parallel to an edge.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = n(n-3)/2 = A000096(n-3) if n is odd;
|
|
MATHEMATICA
|
LinearRecurrence[{0, 3, 0, -3, 0, 1}, {0, 0, 5, 3, 14, 8}, 100] (* or *)
|
|
PROG
|
(Python)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|