OFFSET
0,2
COMMENTS
The considered grid distance is the Manhattan distance (taxicab metric).
LINKS
Eric Weisstein's World of Mathematics, Grid Graph
Eric Weisstein's World of Mathematics, Wiener Index
Eric Weisstein's World of Mathematics, Taxicab Metric
FORMULA
Conjectures from Colin Barker, Apr 08 2018: (Start)
G.f.: 16*x*(1 + x)*(1 + 5*x + x^2) / (1 - x)^6.
a(n) = 2*(n*(6 + 25*n + 40*n^2 + 35*n^3 + 14*n^4)) / 15.
a(n) = 6*a(n-1) - 15*a(n-2) + 20*a(n-3) - 15*a(n-4) + 6*a(n-5) - a(n-6) for n>5.
(End)
MATHEMATICA
a[n_]:=(1/2)*Sum[Sum[Sum[Sum[
Abs[i2-i1] + Abs[j2-j1],
{j1, Abs[i1]-n, n-Abs[i1]}], {i1, -n, n}],
{j2, Abs[i2]-n, n-Abs[i2]}], {i2, -n, n}];
Table[a[n], {n, 0, 32}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Andres Cicuttin, Apr 04 2018
STATUS
approved