Skip to content

Recursion Mystery Cache

Hidden : 1/7/2017
Difficulty:
2.5 out of 5
Terrain:
2 out of 5

Size: Size:   small (small)

Join now to view geocache location details. It's free!

Watch

How Geocaching Works

Please note Use of geocaching.com services is subject to the terms and conditions in our disclaimer.

Geocache Description:

Recent events have had this cache container bouncing all over the park.  Seems like we kept doing the same thing over and over again!  I thought I would make a puzzle that has YOU doing the same thing over and over again to get the answer.

 


Hopefully you have your morning JAVA to help you get through this one.  Start n and w off as 3 and use the result of findNorth to get ABC and the result of findWest to get DEF.

Final coords will be in the form N 41° 33.ABC W 072° 49.DEF

 

public static int findNorth(int n)
    {
        if(n < 555)
        {
            return findNorth(n * 3);
        }  
        else if(n < 765)
        {
            return findNorth(n + 50);
        }
        else
        {
            return n - 20;
        }
    }
    

 


    public static int findWest(int w)
    {
        if(w < 333)
        {
            return findWest(w * 5);
        }  
        else if(w < 567)
        {
            return findWest(w + 77);
        }
        else
        {
            return w - 158;
        }
    }

You can check your answers for this puzzle on GeoChecker.com.

Additional Hints (Decrypt)

I gerrf

Decryption Key

A|B|C|D|E|F|G|H|I|J|K|L|M
-------------------------
N|O|P|Q|R|S|T|U|V|W|X|Y|Z

(letter above equals below, and vice versa)