4 friends a , b , c and d decided to share a lot of apples . each of them had half of the total plus half an apple in order . after each of them took their share 3 time , no apples were left . how many apples were there ?
whenever the rate of reduction is ' half of the total and half of it ' , the answer is always ( 2 ^ n ) - 1 , where ' n ' is the number of times the process is repeated . here , the process is repeated 12 times . so answer is ( 2 ^ 12 ) - 1 = 4095 answer e
subtract(add(multiply(4, const_1000), multiply(const_10, const_10)), add(const_3, const_2))