Thursday, November 29, 2012
Ex 1.6 a mod b with b<0
Given (a mod b) is defined to be a−b⌊ab⌋. Let a,b∈Z with b<0. Show that (a mod b) ∈(b,0].
== Attempt ==
First, ⌊ab⌋ is a unique integer m such that m≤ab<m+1. Equivalently, ab=m+ϵ for some ϵ∈[0,1).
a mod b=a−b⌊ab⌋=a−bm=b(m+ϵ)−bm=bϵ |
0≤ϵ<1, and given b<00≥bϵ>b0≥(a mod b)>b |