Triangle Quest 2

  • + 0 comments

    It was easy to crack as its all power and its reciprocal to retrace the steps for the solution i.e. if take square root of each number it is a squence of 1. e.g.

    1. sqrt(121)=11.0 = (100-1//9)
    2. sqrt(12321)=111.0=(1000-1)//9
    3. sqrt(1234321)=1111.0=(10000-1)//9

    Hence the solution:

    print ((pow(10,i)//9)**2)