comefrom: <doocs>0829.Consecutive Numbers Sum_1.py
code: def consecutiveNumbersSum( n: int) -> int:
      n <<= 1
      ans, k = 0, 1
      while k * (k + 1) <= n:
          if n % k == 0 and (n // k + 1 - k) % 2 == 0:
              ans += 1
          k += 1
      return ans
masked: def sample_funcname ( var_0 : int ) -> int :
      var_0 <<= 1
      var_4 , var_5 = 0 , 1
      while var_5 * ( var_5 + 1 ) <= var_0 :
          if var_0 % var_5 == 0 and ( var_0 // var_5 + 1 - var_5 ) % 2 == 0 :
              var_4 += 1
          var_5 += 1
      return var_4
  