In anticipation of next week's solar eclipse on Monday, 21 August 2017, this month's NSA Puzzle Periodical asks: Can you solve this logic challenge to help reattach the sun's rays?

Due to bizarre and unexplained cosmic fluctuations, the sun's rays have fallen off. In order to save summer you have to put them back on in the right way. Here is what you know:

Following the above rules, label each spot on the sun with the number of the ray that goes there.

Once the rays are correctly placed, add up the label values of rays that are directly opposite each other on the sun. Convert these values to letters using the substitution 1=A, 2=B, …, 26=Z and read them clockwise starting at the top to find out what the sun can do now that it has its rays again.

### Solution:

Adding opposite ray labels:

Converting to letters:

19 = S, 8 = H, 9 = I, 14 = N, 5 = E

Final answer is SHINE

#### Getting to the Solution:

There are many ways individual spots can be labeled, so we want to narrow our search space as much as possible. To do this, we look at the given differences and consider how many pairs of numbers could generate them. Smaller differences can be made by many pairs of numbers, while larger differences are limited to a few pairs.

Start with the biggest difference shown, which is the 8 on the bottom. There are only two pairs of numbers in the range 1-10 that have a difference of 8: 2 and 10, and 1 and 9. There are also two ways that each of those pairs could be placed, depending on which number is placed on the bottom of the sun. We'll try each possibility to see where it leads.

- 10 on the bottom - Moving counterclockwise from 10, the following labels are forced: 2, 9, 8, 4. Once we reach 4, however, we are stuck, since neither 4+7 nor 4-7 are in the range 1-10. So this arrangement will not work.
- 2 on the bottom - Going counterclockwise from 2, we are forced to place the 10 and the 3. Clockwise from 2, 6 is forced. Next must be 9, since 3 is already placed. We now have three even numbers surrounded by odd numbers. Since there are only two even numbers left to place, there is no way we can get the four even numbers in a row that the third condition demands. So this arrangement will not work.
- 1 on the bottom - Moving counterclockwise from 1, 9 and then 2 are forced. Next must be 3, since 1 is already placed. 7 is then forced. From here we are stuck, however, since neither 7+7 nor 7-7 are in the range 1-10. So this arrangement will not work.
- 9 on the bottom – Going counterclockwise from 9, the following labels are forced: 1, 8, 7, 3, 10, 4. We can't yet say if 2 or 6 should go next, so we switch to going clockwise from 9. Here 5 is forced, then 2, since 7 is already used. This leaves 6 for the last spot. So this is the only arrangement that will work. Finally, note that this arrangement also satisfies the third condition.