Post Reply 
(42, all flavours) Integer Division - how?
12-21-2020, 07:51 AM
Post: #53
RE: (42, all flavours) Integer Division - how?
Hi Albert,
can that then not be simplified to verifying whether

a = (1-q)*h (mod 3)

and if not equal q := q-1

works for

2300 = 57*40 + 20 ( 2 ^= (1-58)%3 * 20%3, so q-1)
and
-2300 = -58*40 + 20 (1 = ((1+58)%3 *20%3 )%3; so q=-58 is correct)

Werner

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (42, all flavours) Integer Division - how? - Werner - 12-21-2020 07:51 AM



User(s) browsing this thread: 1 Guest(s)