hpr1292 :: Doomsday Remainders

Reflections on remainders inspired by Doomsday Rule sign-off. Applications to programming and arithm

Hosted by Charles in NJ on 2013-07-16 is flagged as Clean and is released under a CC-BY-SA license.
Tags: arithmetic,remainder,mod.
Listen in ogg, spx, or mp3 format. | Comments (0)

```Last Episode on Conway's Doomsday Rule ends with teaser on MOD(), a
"remainder" function defined for integer values (whole numbers):

MOD(K, m) = remainder when K is divided by "modulus" m.

Examples:
a. MOD(207, 7) = MOD(207 - 140, 7) = MOD(67, 7) = 4
b. MOD(1234567, 2) = 1 because the number is odd

MOD() function found in most spreadsheet programs, but it also shows up
as an operator in some programming languages: (a % b), or (a mod b).

Other functions referenced:
DIV(K, m)    = quotient in integer division
where K = m * quotient + remainder (not returned)
0 <= remainder < m

DIVMOD(K, m) = (quotient, remainder) when K is divided by m
where remainder = MOD(K, m)
quotient  = DIV(K, m)
K = m * quotient + remainder
```

Comments

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
 Your Name/Handle: Title: Comment: Anti Spam Question: What does the P in HPR stand for ? Are you a spammer → Yes No Who hosted this show → Select a Host@einebiene2BFrankA Shadowy FigureAaressaarAccipiterAdamAhukaAkranisAlaldenpAlek GrigorianAlk3Alpha32AmunizpAndrew ConwayAnonymous HostaparanoidshellArcher72arfabArigornStriderAukonDKb-yeezib1ackcr0wBarimanBeezabeniBetobgryderclockBill "NFMZ1" MillerBill_MIBitboxBitviperbjbBlacKernelblackmathBlackratchetBob EvansBob TregilusBob WoodenBobJonkmanbobobexbookewyrmmBrad CarterbrianBrian in OhioBroamBrocktonBobbrother mouseBrotherredCarlccmusiqueCedric De VroeyChadCharles in NJcheeto4493Chess GriffinChristopher M. HobbsCibola JerrycidcjmclackeClaudio MirandacleaveyClinton Roycobra2code.cruncherCoder365CoGocoldstealcorenominalCottonballsCovcrvsCurbuntuCurtis Adkins (CPrompt^)cyanCybercodDaniel PerssonDannDanNixonDarkShadowDaveDave MorrissDave YatesDavid WhitmanDavid WillsondawDeb NicholsondeepgeekDeltarayDelwindesearcherdf99diablomarcusDick ThomasDigital ManiacDismal ScienceDismal Science and Sunzofman1DjBoodmfreydodddummyDominic UilanoDoorToDoorGeekdosmanDospoddoubiDoug FarrellDownerDr^ZigManDrake AnubisDravendroopsdual_parallelDude-mandwickEC LugEdward Miro / c1ph0rElectromanelelEmilien KleinEnigmaEpicanisEric DuhamelFacemanFamicomanfawkesfyreFiftyOneFifty (R.I.P.)Finfinuxfinux and code.cruncherFlaviu SimihaianFloyd C PoynterfolkyFrank BellFrederic CouchetfthGabriel EvenfiregarjolaGeddesGeoNineGermGNULinuxRTMgoibhniuguitarmanhakerdefohandsome_pirateHannah, of Terra, of SolHaqHeisenbugHelvetinHonkeymagooHPR VolunteersHPR_AudioBookClubimahuphInsciusIrongeekIronic SodiumJ-HoodJ. A. MathisJames Michael DuPont (h4ck3rm1k3)janedocJared MayesJason ScottjavatardJBu92jelkimantisJeremyJeroen BatenJezraJezra and NYbillJoeJoe WakumaraJoelJoel DJoey HessjohanvJohn DuarteJohninscJon DoeJon KulpJonathan NadeauJosh KnappjrobbJrulloJulian NeuerJustMeJWPKeith MurrayKen FallonKevieKevin BenkoKevin GranadeKevin WisherKFiveKillersmurfkitcheklaatuKn1ghtl0rdknightwiseKnoxkotrinkurakuraKynan DentL3pprd/ocCodelaindirLinLinlivindedLord Drachenblut (R.I.P.)lostnbronxLowtek MystikLuminaireLunarsphereLyle Lastingerm1rr0r5h4d35MadjimisimiMadRushmarcozMark ClarkeMark Katerberg and Courtney SchauerMark WatersMatt McGraw (g33kdad)matthewmattkingusaMc FrontalotMC SmedleyMerkMessymanMetatronMichael Foord Michal CieraszynskimightbemikeMike HingleyMike RayminnixmirovengimirwiMongomonochromecmonsterbMoral VolcanomordancyMorgellonMPardoMrEMrGadgetsMrsXokeMrXMubixN50Nacho JordiNeandergeekNeodragonNewAgeTechnoHippieNido MediaNihilazonjuliannoplacelikeslashhomenorristNYbillNYbill and Windigoo9lOnlyHalfTheTimeoperat0rp0trill0Padraig Jeroen FallonPat from TLLTSPatrick L Archibald (R.I.P.)Paul QuirkpegwolePeterPeter64PhilipPhizonePhreakerD7PipeManMusicpixel JuicePixelfiendPlexipokeyponyboypope523pyrrhicQuvmohReg ARho`nRichard HughesriddleboxRiley Gelwicks (glwx)RillriscphreerkirkRoadrunnerRobin CatlingrootoutcastrowinggolferRujiRuss Wennersaras foxScedhaschismscriptmunkeeScynerSealSeeteesemioticroboticShane ShennanShannon Wrightsigflupsikilpaake and badbitSilverSkirletskryeslick0SlurrySome Guy On The Internetsp0russp0rus and biosshadowspacemanspaceoutspiffytechStankDawgSteve BickleSteve SanerSteve SmethurstStilvoidStitchSunzofman1Svenswift110tcucTgtm News TeamThaj SaraThe Air Staff of Erie Looking ProductionsThe Alien Brothers Podcast (ABP)The BishopThe Linux Experimentthe_remoraTheDUDEthelovebugthewtexThistlewebThoughtPhreakerthreethirtytimttmytmacuk Toby MeehanTodd MitchellToeJetTony Hughes AKA TonyH1212Tony PelaezTottenkophTracy Holz_HolzsterTreyTrixterTrumpetJohntuturtoUberChickUnderrunerUrban KoistinenUTOSCVarious Creative Commons WorksVarious HostsvenamW3lshrarebitweexwilljasenWindigoWintermute21x1101XcaliburXokeXtratoYannickZachZachary De SantosZen_Floater2 What does HPR mean to you ?