Number of functions from set $S \to C$, where $C$ has 8 distinct elements is:
Step-by-Step Solution
Key Concept: Break the problem into mutually exclusive cases based on relative positions, then sum the results.
Two cases are analyzed: when both grandsons are on the same side of grandfather, there are $2 \times 2 \times 4 = 96$ ways; when on opposite sides, there are $2 \times 3 \times 3 \times 4 = 432$ ways. Total ways = $96 + 432 = 528$.
Correct Answer: 3