We define the functions by:
Note that these functions satisfy the following recurrence:

Apr 10, 20261 min read
We define the functions EXACTkn:{0,1}n→{0,1} by:
EXACTkn(x1,⋯,xn)=1⟺precisely k of x1,⋯,xn are 1Note that these functions satisfy the following recurrence:
EXACTkn(x1)=⎩⎨⎧¬x1k=0x1k=1x1∧¬x1 otherwiseEXACTkn+1(x,xn1)=(xn+1∧EXACTk−1n(x)∨¬xn+1∧EXACTkn(x))
