Ad
  • Default User Avatar

    This question can't really be answered without the code you used. As for a hint, use the math of how doubling and summation work. :)