Solution 1
Number the squares 0,1,2,3,...2k−1. In this case k=10, but we will consider more generally to find an inductive solution. Call sn,k the number of squares below the n square after the final fold in a strip of length 2k.
Now, consider the strip of length 1024. The problem asks for s941,10. We can derive some useful recurrences for sn,k as follows: Consider the first fold. Each square s is now paired with the square 2k−s−1. Now, imagine that we relabel these pairs with the indices 0,1,2,3...2k−1−1 - then the sn,k value of the pairs correspond with the sn,k−1 values - specifically, double, and maybe +1 (if the member of the pair that you're looking for is the top one at the final step).
So, after the first fold on the strip of length 1024, the 941 square is on top of the 82 square. We can then write
s941,10=2s82,9+1
(We add one because 941 is the odd member of the pair, and it will be on top. This is more easily visually demonstrated than proven.) We can repeat this recurrence, adding one every time we pair an odd to an even (but ignoring the pairing if our current square is the smaller of the two):
s82,9=2s82,8=4s82,7=8s127−82,6=8s45,6
s45,6=2s63−45,5+1=2s18,5+1=4s31−18,4+1=4s13,4+1
s13,4=2s15−13,3+1=2s2,3+1
We can easily calculate s2,3=4 from a diagram. Plugging back in,
s13,4s45,6s82,9s941,10=9=37=296=593
Solution 2
More brute force / thinking about the question logically. If the number doesn't change position, then the number of squares below it does not change. Otherwise, it changes position (p↦2k+1−p for the k-th fold). We just take the number of squares under it before we folded and now these are above the square.
Initially it is in position 942 with 0 squares below it.
Fold 1.Fold 2.Fold 3.Fold 4.Fold 5.Fold 6.Fold 7.Fold 8.Fold 9.Fold 10.942 is to the right.83 is to the left.83 is to the left.83 is to the right.46 is to the right.19 is to the right.14 is to the right.3 is to the left.3 is to the right.2 is to the right.942↦8383↦8383↦8383↦4646↦1919↦1414↦33↦33↦22↦1There is 21−1−0=1 square below it.There is 1 square below it.There is 1 square below it.There are 24−1−1=14 squares below it.There are 25−1−14=17 squares below it.There are 26−1−17=46 squares below it.There are 27−1−46=81 squares below it.There are 81 squares below it.There are 29−1−81=430 squares below it.There are 210−1−430=593 squares below it.
Solution 3
We can keep track of the position of the square labeled 942 in each step. We use an (x,y) coordinate system, so originally the 942 square is in the position (942,1). In general, suppose that we've folded the strip into an array r=2k squares wide and c=1024/r=210−k squares tall (so we've made 10−k folds). Then if a square occupies the location (x,y), we find that after the next fold, it will be in the location described by the procedure
(x,y)→{(x,y)(r+1−x,2c+1−y)if x≤2k−1otherwise.
Therefore, we can keep track of the square's location in the following table.
(x,y)(942,1)(83,2)(83,2)(83,2)(46,15)(19,18)(14,47)(3,82)(3,82)(2,431)(1,594)rows10245122561286432168421columns12481632641282565121024.
Therefore, at the end of the process, the square labeled 942 will be in the position (1,594), i.e., it will be above 593 squares.