# Equivalent circuit composed entirely in NAND gates

Summary / Instructions

I was given this problem in a test paper:

Take this circuit

and make an equivalent one only with NAND gates.

The problem

I've tried, with multiple combinations but almost always the result is in this form:
 X+X+X 

Where it's supposed to be in this form X*X+X, the function of the above circuit.

NOT A AND NOT B AND C , ~A*~B + C (~ = NOT, * = AND, + = OR)

Statement

I know I'm not supposed to just throw the problem ( like asking others to get it solve ) but I'm feeling frustrated and I have a final exam soon and I know this kind of question will be in, any help is greatly appreciated.

• De Morgan's laws might be useful. – Andy aka May 23 '17 at 12:03
• The logic function is ~(A*B)+C, or ~A+~B+C. – JimmyB May 23 '17 at 13:02