# Puzzle | Fill Brackets ( )+( )+( )+( )+( ) = 30

( ) + ( ) + ( ) + ( ) + ( ) = 30
This is what you have for equation and following are the numbers that you can use to fill in the brackets:
1, 3, 5, 7, 9, 11, 13 and 15.
You can repeat the no. if required. The resulting sum should be 30.

Solution: The main issue here is that an addition of odd numbers for odd number of times will result in an odd number. So, in no way will you get an even number like 30 by adding these odd numbers but we can apply other mathematical operations inside brackets and get the answer.

Method 1: We can achieve the result of 30 by using the ‘-‘ operator inside the brackets with the digits.
(15 – 9) + (13 – 7) + (7 – 1) + (9 – 1) + (13 – 9) = 30
If you solve inside the brackets you will get the following equation
6 + 6 + 6 + 8 + 4 = 30

Method 2: the result of 30 can also be achieved by using the factorial of number. Since factorial of 3! = 6. If we add 3! five times it will result in 30.
(3!) + (3!) + (3!) + (3!) + (3!) = 6 + 6 + 6 + 6 + 6 = 30

Same question with variation may be asked like () + () + () + () + () = 5. Use of 0 is allowed here.
Same trick of factorial can be applied here, since value of 0! = 1.
Adding factorial 0 five times will result in 5.
0! + 0! + 0! + 0! + 0! = 5
1 + 1 + 1 + 1 + 1 = 5

This article is contributed by RAJENDRA SINGH RAJPU. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

# GATE CS Corner    Company Wise Coding Practice

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.
3.2 Average Difficulty : 3.2/5.0
Based on 4 vote(s)