Stupid question related modulo

Revision en1, by Indiot, 2024-01-12 14:14:08

Hi!

Could someone plz explain to me why 1 / 2 modulo 1e9 + 7 = 5e8 + 5? ![ ](tmp)

my modulo function

output 5e8 + 4.

Thanks!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Indiot 2024-01-12 14:14:08 1453 Initial revision (published)