Блог пользователя Confused101

Автор Confused101, история, 7 лет назад, По-английски

For any three integers is N / (x * y) same as N / x / y?

I tried to check for many random values, It comes out to be same. Is it true for any 3 integers N, x, y. How to prove it. Sorry if the question is silly.

Thanks!

  • Проголосовать: нравится
  • +21
  • Проголосовать: не нравится

»
7 лет назад, # |
Rev. 2   Проголосовать: нравится -23 Проголосовать: не нравится

deleted

»
7 лет назад, # |
  Проголосовать: нравится +29 Проголосовать: не нравится

Are you looking for a case if it is floored every time after division?

»
7 лет назад, # |
  Проголосовать: нравится +72 Проголосовать: не нравится

N = xy·k + r, for some k and r < xy.

.

Since r < xy, the answer always be equal to k regardless of an order of operations you choose.