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!

Printable View

- December 6th 2007, 08:32 PMsuissaNumber 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! - December 6th 2007, 09:29 PMbadgerigar
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 - December 6th 2007, 09:35 PMsuissa
Thanks a lot