Seriously, Who Developed The Mod Function?

Geometry Level 5

The length of the graph of x a b + y a b = 1 |||x|-a|-b|+|||y|-a|-b|=1 can take n n possible values for positive integers a a and b b . Let the sum of all these values be S S .

Find the value of 1 n ( S 2 + 1 ) \dfrac1n \left( {\dfrac{S}{\sqrt{2}}+1}\right) .


Inspiration .


The answer is 39.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Devang Agarwal
Jun 22, 2016

Relevant wiki: Absolute Value Problem Solving - Intermediate

Substituting x x by x -x returns the same equation. Similarly substituting y y by y -y also returns the same equation. Therefore the graph represented by this equation is symmetrical about both the x and y axes and the length of the graph in all the quadrants is the same.

\therefore The length of graph = = 4 × 4 \times the length of graph in the first quadrant.

In the first quadrant, x > 0 x>0 and y > 0 y>0 , \therefore the equation reduces to x a b + y a b = 1 ||x-a|-b|+||y-a|-b|=1

Now, if we shift the origin to ( a , a ) (a,a) , the equation becomes x b + y b = 1 ||x|-b|+||y|-b|=1 , which is again symmetrical about both the axes. Therefore, the graph in the first quadrant can further be divided into 4 symmetric regions by the lines x = a x=a and y = a y=a :

  • Region A a x a \leqslant x , a y a \leqslant y

  • Region B 0 x a 0 \leqslant x \leqslant a , a y a \leqslant y

  • Region C 0 x a 0 \leqslant x \leqslant a , 0 y a 0 \leqslant y \leqslant a

  • Region D a x a \leqslant x , 0 y a 0 \leqslant y \leqslant a

Now, in the region A, a x a \leqslant x , a y a \leqslant y , therefore the equation becomes x ( a + b ) + y ( a + b ) = 1 |x-(a+b)|+|y-(a+b)|=1 whose graph is a square congruent to x + y = 1 |x|+|y|=1 but centered at ( a + b , a + b (a+b,a+b and has side 2 \sqrt{2} and vertices ( a + b , a + b + 1 ) (a+b,a+b+1) , ( a + b , a + b 1 ) (a+b,a+b-1) , ( a + b + 1 , a + b ) (a+b+1,a+b) and ( a + b 1 , a + b ) (a+b-1,a+b) . Maximum x-coordinate(and also y) of the square = a + b + 1 a+b+1 , Minimum x-coordinate(and also y) of the square = a + b 1 a+b-1 .

If any portion of the graph in the region A lies outside the region x 2 a x \leqslant 2a , y 2 a y \leqslant 2a then its reflection in the regions B,C or D might not completely lie in the first quadrant. Therefore, there can be 3 cases :

1- The square completely lies inside x 2 a x \leqslant 2a , y 2 a y \leqslant 2a , i.e. all corners of the square are on or inside x = 2 a x=2a or y = 2 a y=2a or a + b + 1 2 a a+b+1\leqslant 2a (Max x and y coordinate of the square are less than 2 a 2a .)

Then the graphs in regions B, C and D will be congruent to the graph in the region A.

\therefore The length of graph = 4 × = 4 \times the length of graph in the first quadrant.

= 4 2 × = 4^2 \times the length of graph in the region A = 4 2 × 4 × = 4^2 \times 4 \times side of square x ( a + b ) + y ( a + b ) = 1 |x-(a+b)|+|y-(a+b)|=1 = 4 3 2 = 64 2 = 4^3\sqrt{2} = 64\sqrt{2}

2- The square partially lies inside x 2 a x \leqslant 2a , y 2 a y \leqslant 2a i.e. a + b 1 2 a a+b-1\leqslant 2a and a + b + 1 2 a a+b+1\geqslant 2a or a + b = 2 a a+b = 2a (Min x and y coordinate of the square are less than 2 a 2a but max x and y coordinate of the square are greater than 2 a 2a .)

Then only two sides of the square in region A will be reflected in region B and D and only one side will be reflected in region C.

\therefore The length of graph = 4 × = 4 \times the length of graph in the first quadrant.

= 4 × = 4 \times ( 4 4 (no. of sides of square in region A) + 2 2 (in region B) + 1 1 (in region C) + 2 2 (in region C)) × \times side of square

= 36 2 =36\sqrt{2}

3- The square completely lies outside x 2 a x \leqslant 2a , y 2 a y \leqslant 2a , i.e. all corners of the square are on or outside x = 2 a x=2a or y = 2 a y=2a or a + b 1 2 a a+b-1\geqslant 2a (Min x and y coordinate of the square are greater than 2 a 2a .)

Then no portion of the graph in region A will be reflected in region B, C or D.

\therefore The length of graph = 4 × = 4 \times the length of graph in the first quadrant.

= 4 × = 4 \times the length of graph in the region A = 4 × 4 × = 4 \times 4 \times side of square x ( a + b ) + y ( a + b ) = 1 |x-(a+b)|+|y-(a+b)|=1 = 4 2 2 = 16 2 = 4^2\sqrt{2} = 16\sqrt{2}

Thus the length of graph can take 3 different values , i.e. n = 3 n=3 .

S = = Sum of all possible lengths = 64 2 + 36 2 + 16 2 = 116 2 = 64\sqrt{2} + 36\sqrt{2} + 16\sqrt{2} = 116\sqrt{2}

Answer = S 2 + 1 n = \frac{\frac{S}{\sqrt{2}}+1}{n}

= 116 + 1 3 = 39 = \frac{116+1}{3}\ = 39

Great solution bro ! (+1)

neelesh vij - 4 years, 11 months ago

Log in to reply

Thanks buddy !

Devang Agarwal - 4 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...