Results 1 to 3 of 3

Math Help - Number Snake URGENT

  1. #1
    Newbie
    Joined
    Dec 2007
    Posts
    11

    Number Snake URGENT

    1 2 3 4
    8 7 6 5
    9 10 11 12
    16 15 14 13
    17 18 19 20
    24 23 22 21
    ...

    There are rows and columns. (excuse the lack or artistic talent in computers)

    Find a way to decide where any number is positioned in the table.
    Ex: n=1471

    Thanks guys!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Senior Member
    Joined
    Dec 2007
    From
    Melbourne
    Posts
    428
    Divide by 4 and round up to get the row number.
    If the number is odd, then the numbers go from left to right eg. 1 2 3 4, so the remainder when you divided by 4 is the column number.
    If the number is even then they go right to left so 4 - the remainder is the column number
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Dec 2007
    Posts
    11
    Thanks a lot
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Number snake
    Posted in the Math Puzzles Forum
    Replies: 1
    Last Post: June 2nd 2010, 09:49 AM
  2. Number stuff (urgent)
    Posted in the Algebra Forum
    Replies: 6
    Last Post: August 10th 2009, 12:31 PM
  3. Replies: 1
    Last Post: May 5th 2009, 12:27 AM
  4. snake lemma, exact at Coker f
    Posted in the Advanced Algebra Forum
    Replies: 1
    Last Post: November 20th 2008, 10:56 PM
  5. Number Theory-GCD and Divisibility URGENT
    Posted in the Number Theory Forum
    Replies: 2
    Last Post: September 8th 2008, 11:52 AM

Search Tags


/mathhelpforum @mathhelpforum