operations: 4 ? 4 ? 4 ? 4 = 5 and also 4 ? 4 ? 4 ? 4 = 7

Re: operations

You decide which ones work when you remove the parentheses.

A = B = C = D = 4
All these give 5

(D+(C*B))/A (C+(A*D))/B (C+(A*B))/D ((D*C)+A)/B ((B*A)+D)/C
(C+(D*B))/A (A+(C*D))/B (A+(C*B))/D ((C*D)+A)/B ((A*B)+D)/C
(D+(B*C))/A (D+(B*A))/C (B+(A*C))/D ((D*A)+C)/B ((C*B)+A)/D
(B+(D*C))/A (B+(D*A))/C (A+(B*C))/D ((A*D)+C)/B ((B*C)+A)/D
(C+(B*D))/A (D+(A*B))/C ((D*C)+B)/A ((C*A)+D)/B ((C*A)+B)/D
(B+(C*D))/A (A+(D*B))/C ((C*D)+B)/A ((A*C)+D)/B ((A*C)+B)/D
(D+(C*A))/B (B+(A*D))/C ((D*B)+C)/A ((D*B)+A)/C ((B*A)+C)/D
(C+(D*A))/B (A+(B*D))/C ((B*D)+C)/A ((B*D)+A)/C ((A*B)+C)/D
(D+(A*C))/B (C+(B*A))/D ((C*B)+D)/A ((D*A)+B)/C
(A+(D*C))/B (B+(C*A))/D ((B*C)+D)/A ((A*D)+B)/C

All these give 7

D+(C-(B/A)) C+(A-(B/D)) (B+A)-(D/C) (D-(B/A))+C D-((A/C)-B)
C+(D-(B/A)) A+(C-(B/D)) (A+B)-(D/C) (B-(D/A))+C A-((D/C)-B)
D+(B-(C/A)) B+(A-(C/D)) (C+B)-(A/D) (D-(A/B))+C C-((A/D)-B)
B+(D-(C/A)) A+(B-(C/D)) (B+C)-(A/D) (A-(D/B))+C A-((C/D)-B)
C+(B-(D/A)) (D+C)-(B/A) (C+A)-(B/D) (B-(A/D))+C D-((B/A)-C)
B+(C-(D/A)) (C+D)-(B/A) (A+C)-(B/D) (A-(B/D))+C B-((D/A)-C)
D+(C-(A/B)) (D+B)-(C/A) (B+A)-(C/D) (C-(B/A))+D D-((A/B)-C)
C+(D-(A/B)) (B+D)-(C/A) (A+B)-(C/D) (B-(C/A))+D A-((D/B)-C)
D+(A-(C/B)) (C+B)-(D/A) (D-(C/B))+A (C-(A/B))+D B-((A/D)-C)
A+(D-(C/B)) (B+C)-(D/A) (C-(D/B))+A (A-(C/B))+D A-((B/D)-C)
C+(A-(D/B)) (D+C)-(A/B) (D-(B/C))+A (B-(A/C))+D C-((B/A)-D)
A+(C-(D/B)) (C+D)-(A/B) (B-(D/C))+A (A-(B/C))+D B-((C/A)-D)
D+(B-(A/C)) (D+A)-(C/B) (C-(B/D))+A D-((C/B)-A) C-((A/B)-D)
B+(D-(A/C)) (A+D)-(C/B) (B-(C/D))+A C-((D/B)-A) A-((C/B)-D)
D+(A-(B/C)) (C+A)-(D/B) (D-(C/A))+B D-((B/C)-A) B-((A/C)-D)
A+(D-(B/C)) (A+C)-(D/B) (C-(D/A))+B B-((D/C)-A) A-((B/C)-D)
B+(A-(D/C)) (D+B)-(A/C) (D-(A/C))+B C-((B/D)-A)
A+(B-(D/C)) (B+D)-(A/C) (A-(D/C))+B B-((C/D)-A)
C+(B-(A/D)) (D+A)-(B/C) (C-(A/D))+B D-((C/A)-B)
B+(C-(A/D)) (A+D)-(B/C) (A-(C/D))+B C-((D/A)-B)
 
Re: operations

I ain't as generous as TK!

4^(4 - 4) + 4 = 5

4 + 4 - 4 / 4 = 7
 
Top