Neim, 10 9 bytes
A000012ᛄ> Explanation:
A Push 42 000012 Push 4 or A007395 Push 7395 ᛄ Modulo 2 > Increment A000012 (all zeroesones) and A007395 (all twos)
A function that takes the input on the top of the stack and leaves the output on the top of the stack.