첫 번째 시도

  • 수학
  • N(input) = x + (x+d) + (x+2d) + … + (x+nd) = nx + n(n-1)d/2 (d = 1)
    • 모르는 변수가 n과 x인 상황에서 n을 변경해가면서 x값을 찾아낸다.