Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
♤♢☞ 𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 ☜♢♤ the question is wrong as per the option given because for odd number of ~ the answer is -6 and for the even number of ~ the answer is 5 always. because we can see that for ~x = -(x+1) ~5 = - (5+1) = - 6 ~~5 = ~(~5) = ~(-6) = - (-6+1) = - (-5) = 5 so we conclude that when ~x = -(x+1) then ~~x = – (-(x+1) + 1) = (x+1) – 1 = x that is, ~~x = x Looking at the option given in the question, for 6 ~ we would get +5 So I think the question must be ~~~~~~5 = +5 to match one of the option given. for 5 ~ (~~~~~5) the answer is -6 which is not available in the options given. for ~~~~~5 ~~5 = 5 (using ~~x = x) ~~~~5 = ~~(~~5) = ~~(5) = ~~5 = 5 ~~~~~5 = ~(~~~~5) = ~(5) = ~5 = - (5+1) = -6 for ~~~~~~5 ~~5 = 5 ~~~~5 = ~~(~~5) = ~~(5) = ~~5 = 5 ~~~~~~5 = ~~(~~~~5) = ~~(5) = ~~5 = 5
21st Jan 2021, 11:41 AM
Rohit
+ 4
I guess the answer is 5 as ~x represents a single value It must be in this way ~x = -(5 + 1) = -6 now ~~~~~x = ~~~~~-6 => ~~~~5 => ~~~-6 => ~~5 => ~-6 => 5 where => this represents 'after this' This is just a guess tho
21st Jan 2021, 2:24 PM
ASM
ASM - avatar
+ 3
A. S. M. I doubt its that way because if that's true how is the following proof/pattern correct? 🤔 Given: ~x = -(x+1) ~~x = – (-(x+1) + 1) = (x+1) – 1 = x proof: let's take x = 5 ~5 = - (5+1) = - 6 ~~5 = ~(~5) = ~(-6) = - (-6+1) = - (-5) = 5 hence we can conclude that when ~x = -(x+1) then ~~x = x proved!
21st Jan 2021, 2:39 PM
Rohit
+ 3
RKK Yess I think the same, Dont know why I started to validate the options
21st Jan 2021, 3:22 PM
ASM
ASM - avatar