HaCkED By KaSpEr511

* +_+ KaSpEr Was Here +_+ *

 Contact O.K: UzI@Hotmail.Com  

 

 

First Part Of MMM#37

July 24th, 2009

Here is MMM#37 problem:

Based on the introduction to spiral numbers presented in MMM #36, solve one (or both) of these problems:

  1. Come up with an algorithm that tells what number is at an arbitrary X, Y coordinate.
  2. Come up with an algorithm that tells the X, Y coordinates for an arbitrary positive integer.

Solution (1st Part)

Note that the plane can be partitioned into nested square like this

nested

where is the square. We claim that the top left corner of is the number and its coordinate is . The proof is similar to the solution of MMM#36 here. As we can see from the picture above,  this claim is true for . Suppose the statement is true for . To prove for look at the following picture:

nested2

Suppose is the orang square and is the green one. By induction hypothesis and the coordinate of is . As we can see from the picture and the coordinate of is clearly (since the coordinate of is ).


Since is the center of , then by symmetry the coordinate of are respectively. Also

.

Let be an integer coordinate. Then belong to for some . Then can be on top, left, bottom or right of as we can see from this picturenested3Note for any position of in we have or . Hence .

Hence the algorithm to know what number corresponds to is the following:

  1. Compute .
  2. Then is the coordinate of

Categories: Math Monday Madness

Tags: , , , Leave a comment

Leave a comment

Feed

http://watchmath.com/vlog / First Part Of MMM#37