OFFSET
3,1
COMMENTS
A sling on n+1 vertices is a caterpillar that is obtained by adding 1 pendant vertex to the first (or last) internal vertex of a path on n >= 3 vertices.
FORMULA
a(n) = n^3/6 + n^2/2 - 2n/3 + 2.
EXAMPLE
For n=3, a(3)=9 gives the Wiener index of a star graph on 4 vertices. For n=4, a(4)=18 gives the Wiener index of a sling graph on 5 vertices.
*
*__\*__*__*
MATHEMATICA
Table[n^3/6 + n^2/2 - 2n/3 + 2, {n, 3, 102}]
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Julian Allagan, Nov 16 2021
STATUS
approved