Skip to main content

Easy Way to Calculate Remainder of Long Division

       Most of the calculators unable to calulate Remainder of long division.
Today I am going to show you a easy way to Calculate Remainder of Long Division using square-and-multiply algorithm.

Consider example as (25)17 % 77

As we know,
            2517 = 2516 x 251
So we perform steps as follows:
            251 % 77 = 25
            252 % 77 = 9
            254 % 77 = 92 % 77 = 4
            258 % 77 = 42 % 77 = 16
            2516 % 77 = 162 % 77 =25

Since, 17 = 16 + 1 we stopped after 2516 % 77

 Final computation,
            (25)17 % 77 = { [ (25)16 % 77 ] x [ (25)1 % 77 ] } % 77
                                = { 25x25 } % 77
                                = 9


 Happy Coding With Mathematics!

Comments

Popular posts from this blog

Change your Windows 8 Bootlogo

THIS IS HOW TO CREATE A CUSTOM BOOT LOGO! Confirmed Working on 8.1 As well! Step 1: Take ownership of your Bootres.dll using the following commands from an Administrator Command Prompt: takeown /f C:\Windows\Boot\Resources\bootres.dll icacls C:\Windows\Boot\Resources\bootres.dll /grant yourusername :f Note that you need to replace "yourusername" with your username... Step 2: Make a folder on your C: drive and call it bootlogo, and copy bootres.dll into it. Step 3: Make a folder called Logos (To edit your images in) Step 4: Your going to need to download some stuff into your bootlogo folder: www.coderforlife.com/projects/win7boot/extras/#signer http://dl.7-zip.org/7z930-x64.msi <--- Install This www.bome.com/products/restorator/downloads <-- I used the full version, however I don't know if the free version will work. ^^^RESHACKER WILL NOT WORK. LEAVES DLL CORRUPT^^^ This has been suggested as a replacement f...

Why to use Ubuntu?

On April, 2014 Microsoft ends support for XP. Now it is vulnerable and unsecure to use XP. But, few hundred million people still using XP since they don’t know other options and can’t afford Win 7, 8.0, 8.1., 10 I have one suggestion for such people that is Canonical’s Ubuntu . Ubuntu is healthy OS which can run very well on old platform i.e. XP-era hardware. Many people don’t like Linux’s (it is kernel from which Ubuntu has been developed) GUI for them I have Ubuntu-Gnome, KDE, Unity, LXDE and many other interfaces. Ubuntu-Gnome’s GUI is better than Windows GUI and more customizable. There are also Ubuntu flavours for education, server, multimedia, etc. Chinese government also developed Kylin OS for whole China from Ubuntu. You can dual boot your PC with Ubuntu keeping your existing windows. Followings are some points where Ubuntu beats Windows: 1.       Open source and community: -          ...