vishmasur ganitiy kode
Answers
Given : 1 to 1000 people , Odd number people being eaten by vishmasur
To find : Last person in the sequence of eating
Solution:
Odd numbers being eaten
1 , 3 , 5 , 7
1 , 2 ,3 , 4 , 5 , 6 ........................................................., 996 , 997 , 998 , 999 , 1000
After Eating 1st remaining
2 , 4 , 6 ................................................................, 996 , 998 , 1000
= 2( 1 , 2 , 3 ....................................................., 498 , 49 9 , 500)
after Eating 2nd remaining
= 2 ( 2 , 4 , ....................................................., 498 , 500)
= 2 * 2 ( 1 , 2 , ................................................, 249 , 250 )
= 4 ( 1 , 2 , ................................................, 249 , 250 )
after Eating 3rd remaining
= 4 ( 2 , 4 , ....................................................., 250 )
= 8 ( 1 , 2 .................................................... , 125)
after next
= 16 ( 1 , 2 , ........................................., 62)
after next
= 32 ( 1 , ............................................. 31 )
after next
= 64 ( 1 , ................................. . 15)
after next
= 128 ( 1 , ............................... , 7)
after next
= 256 ( 1 , 2 , 3 )
after next
= 256 ( 2)
= 512
512th is the assigned number of the person which is left at last
Learn more:
एक मजेदार कोडे
brainly.in/question/16444616
Please solve this riddle :एक आदमी के पास 25 गाय है। सभीको ...
brainly.in/question/16577634
Slove this puzzle: Steve is taking a bus to Central Park. Steve tells ...
brainly.in/question/16527207
What do you put on the table and cutbut never eat?923 83000Song ...
brainly.in/question/13400406