• D can see in front of him green and blue hats, but not the violet hat.
• E can see violet and yellow hats, but not the red hat.
• G can see hats of all the colours except Orange.
• E is wearing the Indigo coloured hat.
What colour hat is worn by F?
Seven people (A, B, C, D, E, F, G) are in a queue, ordered from front to rear (A is first, G is last).
They wear hats of distinct rainbow colours:
Key clues are used for step-by-step deduction to find the hat colours.
Clue: G sees all hats except Orange ($O$). G sees people A-F.
Reasoning: Since G sees everyone in front (A to F) and observes all colours but Orange, G must be wearing the Orange ($O$) hat.
Result: Hat($G$) = $O$.
Clue: E is wearing the Indigo ($I$) hat.
Result: Hat($E$) = $I$.
Clue: E sees Violet ($V$) and Yellow ($Y$) hats, but not the Red ($R$) hat. E sees people A, B, C, D.
Reasoning: E not seeing Red ($R$) means $R$ is not worn by A, B, C, or D. Therefore, $R$ must be worn by E, F, or G.
Knowing Hat($E$) = $I$ and Hat($G$) = $O$, the Red ($R$) hat must belong to F.
Result: Hat($F$) = $R$.
Clue: D sees Green ($G$) and Blue ($B$) hats, but not the Violet ($V$) hat. D sees people A, B, C.
Reasoning: D not seeing Violet ($V$) means $V$ is not worn by A, B, or C. Therefore, $V$ must be worn by D, E, F, or G.
Since Hat($E$) = $I$, Hat($F$) = $R$, and Hat($G$) = $O$, the Violet ($V$) hat must belong to D.
Result: Hat($D$) = $V$.
The hats assigned so far are: $D=V$, $E=I$, $F=R$, $G=O$.
The remaining people are A, B, C.
The remaining colours are Blue ($B$), Green ($G$), and Yellow ($Y$).
These colours ($B, G, Y$) must be worn by A, B, and C.
The deduced assignments are consistent with all the given clues:
The deduction process determines the hat colors for D, E, F, and G based on the provided information.
Below is given a figure, in which a horse is placed on one of the boxes in a square grid of size $5 \times 5$. The horse can move in either of the following ways in a single move:
(i) two boxes to either left or right side and one box to either up or down side
(ii) two boxes to either up or down side and one box to either left or right side
(iii) the horse cannot step on a grey box. The horse has to stay within the grid and any move to out of the grid is NOT legal.
How many white boxes are there which cannot be covered by horse within 3 moves?
