Inspired by this problem by Ossama Ismail
Consider a grid of LEDs. At first, they are all turned OFF, but then you select a square of LEDs and toggle these 25. You do this for all possible squares and then count the number of LEDs that are ON. This number is called . Now, calculate
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
For n > 8 , the LEDs that are not in the first 4 columns, first 4 rows, last 4 columns, and last 4 rows will be toggled 2 5 times (one for each position in the 5 × 5 square) and therefore will be on at the end.
Therefore, at least the ( n − 8 ) × ( n − 8 ) = n 2 − 1 6 n + 6 4 central square of LEDs will be on at the end, and at most all n × n = n 2 LEDs will be on at the end.
In other words, n → ∞ lim n 2 n 2 − 1 6 n + 6 4 ≤ n → ∞ lim n 2 on ( n ) ≤ n → ∞ lim n 2 n 2 .
Since n → ∞ lim n 2 n 2 − 1 6 n + 6 4 = 1 and n → ∞ lim n 2 n 2 = 1 , by the squeeze theorem n → ∞ lim n 2 on ( n ) = 1 as well.