OFFSET
0,2
COMMENTS
a(n) is the number of subsets of {1,2,...,n} that do not have a cardinality of 2. - Geoffrey Critzer, Feb 25 2012
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5, -9, 7, -2).
FORMULA
E.g.f.: exp(x)*(exp(x)-x^2/2!). - Geoffrey Critzer, Feb 25 2012
G.f.: (1-3*x+2*x^2+x^3)/((1-x)^3*(1-2*x)). - Colin Barker, Apr 01 2012
MATHEMATICA
nn = 20; Range[0, nn]! CoefficientList[Series[Exp[x] (Exp[x] - x^2/2!), {x, 0, nn}], x] (* Geoffrey Critzer, Feb 25 2012 *)
CoefficientList[Series[(1-3*x+2*x^2+x^3)/((1-x)^3*(1-2*x)), {x, 0, 33}], x] (* Vincenzo Librandi, Apr 18 2012 *)
PROG
(Magma) [2^n - n*(n-1)/2: n in [0..40]]; // Vincenzo Librandi, Apr 18 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved