To solve this problem, we need to analyze how many times each bulb is toggled and determine which bulbs end up being on.
Key Observations:
- Toggle Rule: A bulb starts off. It is on if toggled an odd number of times (since even toggles return it to off).
- When is a bulb toggled?: Bulb
nis toggled by personkifkis a divr ofn(personktoggles everyk-thbulb). - Divrs: Divrs of a number come in pairs (e.g., 6 → 1&6, 2&3). Only perfect squares have an odd number of divrs (their square root is a repeated divr: e.g., 4 →1,2,4).
Count Perfect Squares:
We need the number of perfect squares ≤1000.
- $31^2 = 961$ (≤1000)
- $32^2 =1024$ (>1000)
Thus, there are 31 perfect squares from $1^2$ to $31^2$.
Answer: 31


作者声明:本文包含人工智能生成内容。