OFFSET
1,3
COMMENTS
Odd-indexed terms are A047653.
Also the number of subsets of {1..n-1} that are empty or have mean (n-1)/2. - Gus Wiseman, Apr 23 2023
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..500
FORMULA
EXAMPLE
From Gus Wiseman, Apr 23 2023: (Start)
The a(1) = 1 through a(8) = 9 subsets:
{} {} {} {} {} {} {} {}
{1} {1,2} {2} {1,4} {3} {1,6}
{1,3} {2,3} {1,5} {2,5}
{1,2,3} {1,2,3,4} {2,4} {3,4}
{1,2,6} {1,2,4,7}
{1,3,5} {1,2,5,6}
{2,3,4} {1,3,4,6}
{1,2,3,6} {2,3,4,5}
{1,2,4,5} {1,2,3,4,5,6}
{1,2,3,4,5}
(End)
MATHEMATICA
Table[Length[Select[Subsets[Range[n]], Length[#]==0||Mean[#]==n/2&]], {n, 0, 10}] (* Gus Wiseman, Apr 23 2023 *)
PROG
(PARI) a(n) = {polcoef(prod(k=1, n, 1 + 'x^(2*k-n-1)), 0)/2} \\ Andrew Howroyd, Jan 07 2023
CROSSREFS
Not counting the empty set gives A362046 (shifted left).
KEYWORD
nonn
AUTHOR
R. H. Hardin, Nov 24 2007
STATUS
approved