A boy goes to 20 of his friends' houses with some x number of newly purchased marbles in his hands. At every house he visits, he gives away half of the marbles he have and take one of his friend's marbles and adds it with the ones he is left with. He never had a problem of dividing an odd number of marbles left. Finally, after leaving the his 20th friends house, he is left with 2 marbles, can you guess the value of x ?
Login to submit your solution