Are you talking about mathematical integers? Or fixed-width integers in a programming language?
Both equations are identical to mathematical integers, but the two functions have different types of overflow if you use fixed-width integers.
For example, suppose integers are 32-bit
(1310720000/65536)/65537 = 20000/65537 = 0
However, 65536 * 65537 overflows with a 32-bit integer and will be equal to 65536, therefore
1310720000/(65536*65537) = 1310720000/65536 = 20000
Chi Apr 14 2018-10-10T00: 00Z
source share