Escape From Trigonometric Maze

Calculus Level 3

You are in room 1 1 in the upper left corner of a maze of rooms. The goal is to escape this maze and exit through room 25 25 at the bottom right, but you can only move either right or down, passing through a total of 9 9 rooms.

You need to deliberately find a path to get out exactly the same way you were when you started in room 1 , 1, because each room alters you, sometimes even making you imaginary.

What path will let you do that?

Enter your answer as the total of the room numbers you must pass through in order to do that, a sum of 9 9 numbers starting with 1 1 and ending with 25 25 .

For example, if you go through rooms 1 , 2 , 3 , 4 , 5 , 10 , 15 , 20 , 25 1,2,3,4,5,10,15,20,25 , the total is 85 85 . However, you will experience the succession of functions
Tan ( Sin ( ArcSech ( ArcCsc ( Coth ( ArcCosh ( Sec ( ArcCsch ( x ) ) ) ) ) ) ) ) ) \text{Tan}(\text{Sin}(\text{ArcSech}(\text{ArcCsc}(\text{Coth}(\text{ArcCosh}(\text{Sec}(\text{ArcCsch}(x))))))))) so that if you started with for example a real value of 0.5 , 0.5, you would end up being a totally imaginary number 0.714 i 0.714i when you leave the maze, which does not fulfill the requirement.

Note:

  • x \large x cannot start with i , i i, -i , or 0 0 for this problem, but can be any other value, real or complex.
  • See Gudermannian Function .


The answer is 117.

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.

7 solutions

Michael Mendrin
Jul 23, 2018

The path is the nested function

T a n ( A r c C o t ( C s c h ( A r c S i n h ( C o t ( A r c S i n ( T a n h ( A r c C s c h ( x ) ) ) ) ) ) ) ) = x Tan(ArcCot(Csch(ArcSinh(Cot(ArcSin(Tanh(ArcCsch(x))))))))=x

so the following rooms are passed through

1 , 2 , 7 , 12 , 13 , 14 , 19 , 24 , 25 1, 2, 7, 12, 13, 14, 19, 24, 25

which totals 117 117

Let g d ( x ) gd(x) be the Gudermannian Function . Then we have the following identities

1) S i n ( g d ( x ) ) = T a n h ( x ) Sin(gd(x))=Tanh(x)
2) C o t ( g d ( x ) ) = C s c h ( x ) Cot(gd(x))=Csch(x)
3) T a n ( g d ( x ) ) = S i n h ( x ) Tan(gd(x))=Sinh(x)

From 1) and 2) we have

g d ( x ) = A r c S i n ( T a n h ( x ) ) gd(x)=ArcSin(Tanh(x))
C o t ( g d ( A r c C s c h ( x ) ) = x Cot(gd(ArcCsch(x))=x
C o t ( A r c S i n ( T a n h ( A r c C s c h ( x ) ) ) = x Cot(ArcSin(Tanh(ArcCsch(x)))=x

From 3) and 2) we have

T a n ( g d ( A r c S i n h ( x ) ) = x Tan(gd(ArcSinh(x))=x
g d ( x ) = A r c C o t ( C s c h ( x ) ) gd(x)=ArcCot(Csch(x))
T a n ( A r c C o t ( C s c h ( A r c S i n h ( x ) ) ) ) = x Tan(ArcCot(Csch(ArcSinh(x))))=x

Combining the two, we have

T a n ( A r c C o t ( C s c h ( A r c S i n h ( C o t ( A r c S i n ( T a n h ( A r c C s c h ( x ) ) ) ) ) ) ) = x Tan(ArcCot(Csch(ArcSinh(Cot(ArcSin(Tanh(ArcCsch(x)))))))=x

so if one starts out, for example, as x = 0.5 x=0.5 , one would go through the following values

0.5 , 1.44364 , 0.894427 , 1.10715 , 0.5 , 0.481212 , 2. , 0.463648 , 0.5 0.5, 1.44364, 0.894427, 1.10715, 0.5, 0.481212, 2., 0.463648, 0.5

and escaping as 0.5 0.5 . The only values x x cannot start with is i , i i, -i , or 0 0 as that would leave you indeterminate.

Solved this using programming (Excel) :

1-Mapped each of the 25 cells with their 0 to 2 possible next cells (25x3 matrix)

2-Created a 1000x9 matrix containing each possible path using random walk (vlookups and conditions used)

3-Had to implement missing math functions such as ACSCH, ACSC, ASECH and ASEC using VBA because they are missing on Excel

4-Initialized a constant to 1 and created a result cell that combines each of the 1000 lines into the targeted functions

5-By an immense miracle, the 1st line generated randomly was the right path to the correct answer 117 (1,2,7,8,13,18,19,24,25)

I can provide the Excel file for the curious minds

Anonymous Anonymous - 2 years, 9 months ago

Log in to reply

you sovled this using EXCEL?

wow

Michael Mendrin - 2 years, 9 months ago
M M
Aug 7, 2018

For a heuristic in seeking the correct answer, I looked for a path that had equal numbers of "trig and inverse trig" as well as "hyperbolic trig and inverse hyperbolic trig" functions in the appropriate orders such that I could handle "cancelling pairs" from the inside-out as needed (Recognizing that I know identities that allow me to deal with tan(arccos(x)) and arcsinh(cosh(x)) and the like). For example, if we code "trig" as t t and "inverse trig" as t 1 t^{-1} , hyperbolic trig as h h and h 1 h^{-1} likewise, I sought paths which would simplify by cancelling only adjacent terms with opposite powers.

Following a quick color-coding it was quick to see that no such path could travel through blocks 3 or 8 (due to the number of inverse hyperbolic segments "blocking" the rest of the route) or through blocks 16 or 17 for a similar reason with trigonometric functions. This left

It turns out that there were only two such paths to worry about:

1 2 7 12 13 14 19 24 25

and

1 6 11 12 13 14 19 24 25

Checking both of them through identities, as many have demonstrated already, shows that the first is correct. If I end up with the time I might demonstrate exactly which identities in which order yield the "least annoying" computations, but this should be apparent from the "cancellations" above.

My primary reason in writing this solution, which is not a complete solution, is to provide one quick heuristic for looking for candidate paths, since this narrowed 70 possible paths down to 2.

As I have said elsewhere, this problem is more of a puzzle than a math problem, so I'm interested in the variety of approaches to solving this. I really don't know what would be the best approach to take if I were to solve this problem myself.

Michael Mendrin - 2 years, 10 months ago

I tried the same idea. It helped. I've never studied hyperbolic trig functions before- so this was a difficult problem. Ultimately, I got a bit lucky.

Sam Davis, II - 2 years, 10 months ago
Mark Hennings
Aug 6, 2018

Note that tan ( cot 1 x ) = x 1 c o s e c h ( sinh 1 x ) = x 1 \tan(\cot^{-1}x) = x^{-1} \hspace{2cm} \mathrm{cosech}\,(\sinh^{-1}x) = x^{-1} for nonzero real x x . Thus tan ( cot 1 ( c o s e c h ( sinh 1 ( x ) ) ) ) = x \tan\left(\cot^{-1}\left(\mathrm{cosech}\left(\sinh^{-1}(x)\right)\right)\right) \; = \; x for nonzero real x x . We only now need to note that tanh ( c o s e c h 1 ( x ) ) = s g n ( x ) x 2 + 1 cot ( sin 1 ( s g n ( x ) x 2 + 1 ) ) = x \tanh\big(\mathrm{cosech}^{-1}(x)\big) \; = \; \frac{\mathrm{sgn}(x)}{\sqrt{x^2+1}} \hspace{2cm} \cot\left(\sin^{-1} \left(\tfrac{\mathrm{sgn}(x)}{\sqrt{x^2+1}}\right)\right) \; = \; x for real nonzero x x , so we see that the correct sequence is 1 2 7 12 13 14 19 24 25 1\;\;2\;\;7\;\;12\;\;13\;\;14\;\;19\;\;24\;\;25 making the answer 117 \boxed{117} . The inverse trigonometric and inverse hyperbolic functions require careful argument choices to extend to the complex plane, but analytic continuation will be enough to show that tan cot 1 c o s e c h sinh 1 a n d cot sin 1 tanh c o s e c h 1 \tan \circ \cot^{-1} \circ\,\mathrm{cosech}\,\circ \sinh^{-1} \hspace{1cm} \mathrm{and} \hspace{1cm} \cot \circ \sin^{-1} \circ \tanh \circ\,\mathrm{cosech}^{-1} both act as the identity on C \ { 0 , i , i } \mathbb{C} \backslash \{0,i,-i\} (and not just on the nonzero reals), which is what we want.

As always, an excellent solution. But this problem is more of a puzzle than a math problem, because there are 70 possible paths, and only one of them works. Even I'm not sure what's a systematic way of finding that one path that works, except through trial and error. Or look for pairs of pairs as you apparently have done. I provided the link to the Gudermannian Function site in hopes the reader would make use of the identities to look for the right path a little more efficiently.

And, yes, "careful argument choices to extend to the complex plane" was a problem for me in finding the right sequence of nested trigonometric functions, because much of the time it only works for a limited range of values for x \large x , if at all.

Michael Mendrin - 2 years, 10 months ago
Vinod Kumar
Aug 7, 2018

I just chose a path which nests inverse function and the function or vice versa together.

The nesting of two is within same type i.e. trigonometric and hyperbolic. Pairing sequence is (1) arccsch, tanh, (2) arcsin, cot , (3) arcsinh, csch and (4) arccot, tan.

Testing with Wolfram Alpha gave positive result. Summing all the digits answer is 1+2+7+12+13+14+19+24+25=117

In fact, there are other nested series of functions possible that do not alternate between trigonometric functions and their inverses, but they yield an unchanged x \large x only for some range of values.

Michael Mendrin - 2 years, 10 months ago
Darko Simonovic
Aug 7, 2018

Here is a Matlab / Octave code for solving this problem:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
dx=0.01;
x=-10+dx/2:dx:10+dx/2;

fun=cell(5,5);
fun{1,1} = x;
fun{1,2} = @(x) acsch(x);
fun{1,3} = @(x) sec(x);
fun{1,4} = @(x) acosh(x);
fun{1,5} = @(x) cot(x);
fun{2,1} = @(x) cos(x);
fun{2,2} = @(x) tanh(x);
fun{2,3} = @(x) atanh(x);
fun{2,4} = @(x) csc(x);
fun{2,5} = @(x) acsc(x);
fun{3,1} = @(x) acos(x);
fun{3,2} = @(x) asin(x);
fun{3,3} = @(x) cot(x);
fun{3,4} = @(x) asinh(x);
fun{3,5} = @(x) asech(x);
fun{4,1} = @(x) cosh(x);
fun{4,2} = @(x) atan(x);
fun{4,3} = @(x) asec(x);
fun{4,4} = @(x) csch(x);
fun{4,5} = @(x) sin(x);
fun{5,1} = @(x) acoth(x);
fun{5,2} = @(x) sech(x);
fun{5,3} = @(x) sinh(x);
fun{5,4} = @(x) acot(x);
fun{5,5} = @(x) tan(x);

comb=perms([0 0 0 0 1 1 1 1]);
comb=unique(comb,'rows');

for i_comb=1:size(comb,1)
    row=1;column=1;
    f=fun{1,1};
    cum_sum=1;
    for i_move=1:8
        if comb(i_comb,i_move)
            row=row+1;
        else
            column=column+1;
        end
        f=fun{row,column}(f);
        cum_sum = cum_sum+5*(row-1)+column;
    end
    if max(abs(f-x))<1e-10
        label={'right','down'};
        disp(label(comb(i_comb,:)+1))
        disp(['Total sum is: ' num2str(cum_sum)])
    end
end

Yes, this problem probablly should be in the "Computer Science" category.

Michael Mendrin - 2 years, 10 months ago
Gia Hoàng Phạm
Aug 10, 2018

Because each two functions like A r c C s c h ArcCsch & C s c h Csch is just same as x × 1 x \times 1 which is x x .

The path way number is 1 , 2 , 7 , 12 , 13 , 14 , 19 , 24 , 25 {1,2,7,12,13,14,19,24,25}

And the answer is 117 \boxed{\large{117}}

The 2nd pathway you've listed doens't work. If x = 0.5 x=0.5 , then you end up with 1.73205... 1.73205...

Michael Mendrin - 2 years, 10 months ago

Log in to reply

Ok,Thanks!

Gia Hoàng Phạm - 2 years, 10 months ago
Sam Davis, II
Aug 10, 2018

How to INCORRECTLY solve this problem: 1) find the highest possible value of your track:1+6+11+16+21+22+23+24+25=149 2) find the lowest possible value of your track: 1+2+3+4+5+10+15+20+25=85 3) find the average of these values: (149+85)/2=117

Probability says this value should be pretty close... and what do you know!

85 , 89 , 93 , 97 , 101 , 105 , 109 , 113 , 117 , 121 , 125 , 129 , 133 , 137 , 141 , 145 , 149 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 125, 129, 133, 137, 141, 145, 149 are all the possible sums there can be, and 117 117 is right in the middle. Picking 113 , 117 , 121 113, 117, 121 in 3 3 tries would have a probability 22 70 \frac{22}{70} of winning.

Michael Mendrin - 2 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...