|
|
A274047
|
|
Diameter of Generalized Petersen Graph G(n, 2).
|
|
1
|
|
|
2, 4, 3, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 22, 22, 22, 22, 23, 23, 23, 23, 24, 24, 24, 24, 25
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
5,1
|
|
LINKS
|
|
|
FORMULA
|
a(n) = floor((floor(n/2)+5)/2) for n>7.
G.f.: x^5*(2 + 2*x - x^2 + x^3 - 2*x^4 - x^5 + x^6 - x^7)/((1 + x)*(1 - x)^2*(1 + x^2)). - Bruno Berselli, Jun 08 2016
|
|
MATHEMATICA
|
a[n_] := GraphDiameter[PetersenGraph[n, 2]]; Table[a[n], {n, 5, 30}]
LinearRecurrence[{1, 0, 0, 1, -1}, {2, 4, 3, 4, 4, 5, 5, 5}, 100] (* Harvey P. Dale, Jan 12 2020 *)
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|