🛰️ Step 1 – How many antennas are absolutely necessary?
• Suppose the village had fewer than 99 antennas.
• Even if we put every antenna on a different house, we would still leave at least two houses, say H₁ and H₂, with no antenna at all (because there are 100 houses).
Now look at any third house H.
The triple {H₁, H₂, H} must contain at least 2 antennas, but H₁ and H₂ contribute 0, so H must carry ≥2 antennas.
Since the same argument works for every one of the remaining 98 houses, each of them would have to carry ≥2 antennas ⇒ at least 98 × 2 = 196 antennas in total – contradicting the assumption “fewer than 99”.
Therefore the village needs at least 99 antennas.
• Construction that reaches 99:
– Put exactly 1 antenna on 99 houses.
– Leave the remaining 1 house without any antenna.
Every triple of houses then contains either
– three antenna–houses (sum = 3 ≥ 2), or
– two antenna–houses + the empty house (sum = 2 ≥ 2).
Hence the condition is met with 99 antennas, so
Minimum number of antennas = 99.
🪶 Step 2 – Minimum number of crows for M antennas
For M antennas let c₁ ≤ c₂ ≤ ⋯ ≤ c_M be the numbers of crows on them.
• If two antennas had 0 or 1 crow each, their pair would hold ≤2 crows, violating the “≥3” rule.
⇒ At most one antenna may carry fewer than 2 crows.
• Putting 0 crows on an antenna forces every other antenna to have ≥3 crows (0 + 2 < 3), which is worse than letting that antenna carry 1 crow.
Hence the cheapest possible pattern is
1 antenna with 1 crow and the remaining (M – 1) antennas with 2 crows each.
Total crows C_min(M) = 1 + 2(M – 1) = 2M – 1.
🪶🛰️ Step 3 – Plug in M = 99
C_min(99) = 2·99 – 1 = 198 – 1 = 197.
• Realization:
Take the 99 antennas placed in Step 1.
Put 1 crow on one chosen antenna and 2 crows on each of the other 98 antennas.
Every pair of antennas then holds either 1 + 2 = 3 or 2 + 2 = 4 crows – satisfying the second condition.
🎯 Final answer
The smallest possible number of crows perching on antennas in the village is