There are p knights sitting at positions at King Arthur's round table. In order to choose the leader, Arthur starts counting at position 1 and dismisses every rth seated knight until only 1 knight remains. The remaining seated knight becomes the leader.
Let be the integer position of the eventual leader when the table starts out with p knights and every rth seated one is dismissed.
Let T = . What is T?
Details and assumptions
. The knights start seated at positions 1, 2, 3, 4. Arthur dismisses them in this order: 2, 4, 3. The knight seated at position 1 becomes the leader.