OFFSET
1,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (8,-25,38,-28,8).
FORMULA
From Stefano Spezia, Sep 21 2020: (Start)
G.f.: x*(1 + 2*x)/((1 - x)^2*(1 - 2*x)^3).
a(n) = 8*a(n-1) - 25*a(n-2) + 38*a(n-3) - 28*a(n-4) + 8*a(n-5) for n > 4.
a(n) = 2^(n+1)*(n^2 - 4*n + 8) - 3*n - 16. (End)
EXAMPLE
For n = 3, the nonempty subsets of {1,2,3} are {1}, {2}, {3}, {1,2}, {2,3}, {1,3}, {1,2,3}; the diameters of these sets are 0,0,0,1,1,2,2 and the sum of the squares of these numbers is 10.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Enrique Navarrete, Sep 20 2020
STATUS
approved