tabacus

Welcome to tabacus!

Thanks for trying out our beta!

As a sign of our gratitude, we've given you free access to all Pro features for the duration of the beta, and you'll get an exclusive discount when the app is fully released.

Expect frequent updates and fixes. We're working hard to make the app as good as possible, so any feedback is highly appreciated!

By using tabacus you agree to the Terms of Service and Privacy Policy.

Send feedback

Your profile

A square crop is kept, 256 × 256.
Change password

Leave both blank to keep your password. You don't need your old one: choose a new password here and save. Never set one? This sets it.

Clear this sheet?

You can undo it for a few seconds afterward.

Delete your account?

This permanently deletes the account and everything saved to it: your synced sheets, equations, materials and constants, your profile and picture, saved files, and connected AI apps. It can't be undone.

The work open in this browser stays here.

Save document

Open a document

Draw a molecule

Click an atom to grow a chain, drag from it to draw a bond, click a bond to make it double or triple. Keys: C N O S, 1 2 3 for bonds, B for benzene, E to erase.

Export this tab


    

Modulo calculator

Tabacus computes a mod n the number-theory way, always giving a remainder from 0 to n − 1, even for negative numbers. It also reduces whole expressions like (46·23) mod 7.

Answer. 100 mod 7 = 2; -17 mod 5 = 3; (46*23) mod 7 = 1

Worked solution

a mod n is the remainder r with a = q · n + r and 0 ≤ r < n.

100 mod 7:  100 = 14 · 7 + 2, so the remainder is 2.
-17 mod 5:  -17 = (-4) · 5 + 3, so the remainder is 3 (not -2: it must be between 0 and 4).
(46 · 23) mod 7:  reduce first, 46 ≡ 4 and 23 ≡ 2 (mod 7), so 46 · 23 ≡ 4 · 2 = 8 ≡ 1.

Frequently asked questions

Why is -17 mod 5 equal to 3 and not -2?

In math the remainder is always between 0 and n − 1: -17 = (-4)·5 + 3. Some programming languages return -2 because they round the quotient toward zero.

How do I compute a huge power mod n?

Use the modular exponentiation calculator, which reduces 7^100 mod 13 step by step.

Related tools

All tabacus tools

The calculator above is already loaded with this problem, edit it or type your own.