2,197 views
1 votes
1 votes

A rectangle of height 100 squares and width 200 squares is drawn on a graph paper. It is colored square by square from top left the corner and moving across in a spiral turning right whenever a side of the rectangle or a colored square is reached. Which square is colored last? (give its row and column numbers – the bottom right square is on row 100 and column 200)

a) 50,50
b) 51,50
c) 51,150
d) 50,150

1 Answer

0 votes
0 votes
I think answer shold be B(51,50)

you can take first small size for understanding

suppose i took (4,8) rectangle that ends at (3,2).

(1,1) – – – – – – (1,8)

…..so on

so on …..it's end at (3,2).

For(2,4), ends at (2,1)

For(3,6) ends at (2,5)

For(4,8) ends at (3,2)

For(5,10) ,ends at (3,8)

For(6,12) ends at (4,3).

For(7,14) rectangle ends at (4,11)

For (8,16) ...ends at (5,4)

We can get some idea that,

For Even number of rows,  column increases 1 by previous column.

For Odd number of rows,  difference of the present column and the previous even number column we get that particular column.

For  row, the value repeats two times from row 2.

In this problem, (100, 200) i.e.

Even number row,

So  column value must be 50 for 200 columns and  row value must be 51 for 100 rows.

For even number of rows and columns,

Condition: Column =2*Row

(R, C) = {((Row/2) +1), Column/4} (this is generalize formula for this type of question).

Related questions

1 votes
1 votes
1 answer
1
__ asked Sep 12, 2016
2,285 views
B moves by taking 3 steps forward and 1 step backward (each step in one second ) He walks up a stationary escalator in 118 sec. However on moving escalator he takes 40 se...
1 votes
1 votes
1 answer
2
__ asked Sep 15, 2016
1,644 views
There are two bags. One bag contains 4 white and 2 black balls. Second bad contains 5 white and 4 black balls. 2 balls are transferred from first bag to second bag. Then ...
0 votes
0 votes
1 answer
3
0 votes
0 votes
2 answers
4
__ asked Sep 12, 2016
3,189 views
What is the remainder of (16937^30)/31 ? ( 1 Marks )1234
1 votes
1 votes
1 answer
5
__ asked Sep 12, 2016
5,089 views
A dealer buys a product at Rs.1920. he sells at a discount of 20% still he gets the profit of 20%. what is the selling price? ( 1 Marks )534230023042403