OFFSET
0,4
FORMULA
From Alois P. Heinz, Feb 21 2023: (Start)
a(n) = 2^(n-1) - A000016(n) for n>=1. (End)
EXAMPLE
The a(1) = 1 through a(5) = 12 subsets:
{1,2} {1,3} {1,4} {1,5}
{2,3} {2,4} {2,5}
{3,4} {3,5}
{1,2,4} {4,5}
{1,3,4} {1,2,5}
{1,2,3,4} {1,4,5}
{2,3,5}
{2,4,5}
{1,2,3,5}
{1,2,4,5}
{1,3,4,5}
{2,3,4,5}
MATHEMATICA
Table[Length[Select[Subsets[Range[n]], MemberQ[#, n]&&!MemberQ[#, Mean[#]]&]], {n, 0, 10}]
PROG
(Python)
from sympy import totient, divisors
def A327477(n): return (1<<n-1)-sum(totient(d)<<n//d-1 for d in divisors(n>>(~n&n-1).bit_length(), generator=True))//n if n else 0 # Chai Wah Wu, Feb 21 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 13 2019
EXTENSIONS
a(25)-a(34) from Alois P. Heinz, Feb 21 2023
STATUS
approved