The key to solving this problem is how efficiently we process the data. Let's dive in
The total number of computers is 6000, and initially, 4 were infected.
1st iteration- each initial 4 will infect 8 others so total infected- 32 in 1st iteration, after 1st iteration total infected are 4+32
2nd iteration- each 32 infected in 1st will infect 4 others, so infected now- 32*4=128, total infected after 2nd iteration are 4+32+128=164
3rd iteration- each 128 infected in 2nd iteration will infect 2 others, so infected now -128*2=256, total infected after 3rd iteration are 4+32+128+256=420
4th iteration-each 256 infected in 3rd iteration will infect 1 other, so infected now-256, total infected after 4th iteration are 4+32+128+256+256=676
we have to select the nos that remain uninfected after 2nd and 4th iteration
after 2nd uninfected=6000-164=5836
after 4th uninfected=6000-676=5324
hope it helps
Bunuel
Umbrella Corporation monitors a network of 6,000 computers. At the start of the virus outbreak, 4 of these computers get infected. The infection weakens with each round of spreading:
- In the first iteration, each of the 4 initially infected machines infects 8 others.
- In the second iteration, each machine infected in the first iteration infects 4 others.
- In the third iteration, each machine infected in the second iteration infects 2 others.
- In the fourth iteration, each machine infected in the third iteration infects 1 other.
Select for
2 iterations the number of computers that remain uninfected after two iterations are completed, and select for
4 iterations the number of computers that remain uninfected after four iterations are completed. Make only two selections, one in each column.