Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

First of all,

I am terrible at math, and this small problem is giving me a nice headache. I'm sure most here will see this as an easy solution. I will try to be as clear as possible.

  1. I have X number of items
  2. I have 3 positions for these items
  3. I need to find out the position of the last item


X = 5

Item 1 = Position A
Item 2 = Position B
Item 3 = Position C
Item 4 = Position A
Item 5 = Position B

My answer is Item 5 = Position B

I can't figure out the equation! Some help would be much appreciate.

PS: Although is the first time I post at math.stackexchange. I have been a member of other stackexchange website for a while. Let me know if I need to provide more information.

share|cite|improve this question
up vote 1 down vote accepted

Start numbering items at 0 instead of 1. Then the position of the $n$th item is the remainder after dividing $n$ by 3, where 0, 1, and 2 mean positions A, B, and C, respectively.

Here's why: You can always write $n$ in the form $3q + r$, where $q$ and $r$ are the quotient and remainder after dividing $n$ by 3. Since we've started numbering at 0, items divisible by 3 (I.e. 0,3,6,9,...) will always be at position 0 (=position A). So, to find out the position of our item, we just notice that item $3q$ is at position 0, and so ours is at position $r$.

share|cite|improve this answer
I actually had to think about your answer for a while. But it makes sense, and it solved my issue. Thank you very much for your help. – gdaniel Jun 16 '13 at 2:58
@gdaniel you're quite welcome. And don't be discouraged that you had to think about my answer for awhile. Thinking deeply is the best way to really understand a math topic. – Avi Steiner Jun 16 '13 at 3:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.