the minimum size of the multiplexer needed?
circuit input n goes to the inverter
circuit inputs 1 to n-1 go the multiplexer address lines

mux data inputs are wired to 1,0,n or not(n) as required to produce your function on the output.