A input function can take values {0,1,2,4,6,7} and the output can take {0,2,4,6}.
Then how many bits (lines) are required for input and output ?
My doubt is: Since only 4 different states are required to be represented (for output) , so why not use only 2 bits?