# The Logical Puzzle - 28 May 2008

Suppose you lay a string on the ground all around the earth right over the equator. The length of the string would be equal to the earth’s equatorial circumference—40,075.02 kilometers. Then, suppose you add 1 meter to the string, and suspend the string directly above the equator, with an even distance from the ground all the way around. Would a cat be able to pass from one hemisphere to another below the string?

### June’s Puzzle: Josephus Problem

The Josephus problem is an ancient puzzle that involves a group of 41 men standing in a circle. Going around the circle, every second standing man is executed (one skipped, one executed) until only one man is left standing. Assuming that the positions are numbered 1 through 41, which position should Josephus (one of the men) choose if he could, so that he would be the only one to remain standing? Can you generalize the solution for n men? Write a T-SQL solution that returns the position based on the input number of men @n.