1.19: Divisibility Tests for 7 and 13
- Page ID
- 83353
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\(\newcommand{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\ket}[1]{\left| #1 \right>}\)
\(\newcommand{\bra}[1]{\left< #1 \right|}\)
\(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
\(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
\(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
\(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
\(\newcommand{\expect}[1]{\langle #1 \rangle}\)
\(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)
Let \(a=a_ra_{r-1}\dotsm a_1a_0\) be the decimal representation of \(a\). Then
- \(7\mid a\Leftrightarrow 7\mid (a_r\dotsm a_1-2a_0)\).
- \(13\mid a\Leftrightarrow 13\mid (a_r\dotsm a_1-9a_0)\).
[Here \(a_r\dotsm a_1=\frac{a-a_0}{10}=a_r10^{r-1}+\dotsb+a_210+a_1\).]
Before proving this theorem we illustrate it with two examples. \[\begin{split} 7\mid 2481 &\Leftrightarrow 7\mid (248-2) \\ &\Leftrightarrow 7\mid 246 \\ &\Leftrightarrow 7\mid (24-12) \\ &\Leftrightarrow 7\mid 12 \end{split}\] since \(7\nmid 12\) we have \(7\nmid 2481\).
\[\begin{split} 13\mid 12987 &\Leftrightarrow 13\mid (1298-63) \\ &\Leftrightarrow 13\mid 1235 \\ &\Leftrightarrow 13\mid (123-45) \\ &\Leftrightarrow 13\mid 78 \end{split}\]
since \(6\cdot 13=78\), we have \(13\mid 78\). So, by Theorem \(\PageIndex{1}\) (b), \(13\mid 12987\).
Proof
of (a)
Let \(c=a_r\dotsm a_1\). So we have \(a=10c+a_0\). Hence \(-2a=-20c-2a_0\). Now \(1\equiv -20\pmod 7\) so we have \[-2a\equiv c-2a_0\pmod 7.\nonumber \] It follows from Theorem 1.17.1 that \[-2a\bmod 7=c-2a_0\bmod 7.\nonumber \] Hence, \(7\mid -2a\Leftrightarrow 7\mid (c-2a_0)\). Since \(\gcd(7,-2)=1\) we have \(7\mid -2a\Leftrightarrow 7\mid a\). Hence \(7\mid a\Leftrightarrow 7\mid (c-2a_0)\), which is what we wanted to prove.
of (b)
(This has a similar proof to that for \(\PageIndex{1}\)(a) and is left for the interested reader.)
Exercises
Using Theorem \(\PageIndex{1}\), determine which of the following, if any, is divisible by \(7\); also decide whether either is divible by 13. Show all your computations.
- \(6994\)
- \(6993\)
Give multiple reasons, including an application of Theorem \(\PageIndex{1}\), why no integer of the form \(10^n\) can be divisible by 7 or 13.
Using Theorem \(\PageIndex{1}\), determine the next year (after, possibly, the current year) that is
- divisible by 7.
- divisible by 13.
Show by example that, in the notation of Theorem \(\PageIndex{1}\), \(a\bmod 7\) need not be equal to \((a_r\dotsm a_1-2a_0) \bmod 7\).
Show that the number \(a = a_r a_{r-1} \cdots a_1 a_0\) is divisible by 13 if and only if \(a_r a_{r-1} \cdots a_1 + 4a_0\) is divisible by 13. (This gives a slightly different test for divisibility by 13.) Once you have proved this, apply it to test whether 111,111 is divisible by 13.


