Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Divisibility rule
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Proof using modular arithmetic=== This section will illustrate the basic method; all the rules can be derived following the same procedure. The following requires a basic grounding in [[modular arithmetic]]; for divisibility other than by 2's and 5's the proofs rest on the basic fact that 10 mod ''m'' is invertible if 10 and ''m'' are relatively prime. ====For 2<sup>''n''</sup> or 5<sup>''n''</sup>==== Only the last ''n'' digits need to be checked. : <math>10^n = 2^n \cdot 5^n \equiv 0 \pmod{2^n \text{ or } 5^n}.</math> Representing ''x'' as <math>10^n \cdot y + z,</math> : <math>x = 10^n \cdot y + z \equiv z \pmod{2^n \text{ or } 5^n},</math> and the divisibility of ''x'' is the same as that of ''z''. ====For 7==== Since 10 Γ 5 β‘ 10 Γ (β2) β‘ 1 (mod 7), we can do the following: Representing ''x'' as <math>10 \cdot y + z,</math> : <math>-2x \equiv y -2z \pmod{7},</math> so ''x'' is divisible by 7 if and only if ''y'' β 2''z'' is divisible by 7.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)