Last updated: 2019-03-19

Checks: 2 0

Knit directory: for-future-reference/

This reproducible R Markdown analysis was created with workflowr (version 1.2.0.9000). The Report tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility. The version displayed above was the version of the Git repository at the time these results were generated.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the R Markdown and HTML files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view them.

File Version Author Date Message
html 1efc463 John Blischak 2019-03-19 Build site.
Rmd 674ab95 John Blischak 2019-03-19 Add proof of a logarithm property.
html 3549872 John Blischak 2019-01-25 Build site.
Rmd d5bcc6f John Blischak 2019-01-25 Add style and navigation.
html 0520a16 John Blischak 2019-01-25 Build site.
Rmd 1c3d6a1 John Blischak 2019-01-25 Add some proofs from discrete math.

Even and odd integers

If \(k\) is any odd integer and \(m\) is any even integer, then \(k^{2} + m^{2}\) is odd.

Proof: Let \(k\) and \(m\) be any integers, and suppose that \(k\) is odd and \(m\) is even. By definition of odd, \(k = 2r + 1\) for some integer \(r\). By definition of even, \(m = 2s\) for some integer \(s\). It follows that

\[ k^{2} + m^{2} = (2r + 1)^{2} + (2s)^{2} \]

\[ = 2(2r^{2} + 2r + 2s^{2}) + 1. \]

\(2r^{2} + 2r + 2s^{2}\) is an integer because sums and products of integers are integers. By definition of odd, \(k^{2} + m^{2}\) is odd. \(\square\)

Divisibility

For all integers \(a\), \(b\), and \(c\), if \(a|b\) and \(a|c\) then \(a|(2b - 3c)\).

Proof: Let \(a\), \(b\), and \(c\) be any integers and suppose \(a|b\) and \(a|c\). By definition of divisibilty, \(b = ra\) and \(c = sa\) for some integers \(r\) and \(s\). It follows that

\[ 2b - 3c = 2(ra) - 3(sa) = a(2r - 3s). \]

\(2r - 3s\) is an integer because sums and products of integers are integers. Thus by definition of divisibility, \(a|(2b - 3c)\). \(\square\)

Quotient-Remainder Theorem

The square of any integer has the form \(3k\) or \(3k + 1\) for some integer \(k\).

Proof: Let \(n\) be any integer, then by QRT (with \(d = 3\)) \(n = 3q + r\) for some integers \(q\) and \(r\) with \(0 \leq r < 3\).

Therefore, in all cases \(n^{2} = 3k\) or \(n^{2} = 3k + 1\). \(\square\)

Logarithms

The following proof is from Discrete Mathemtics with Applications, 4th Edition by Susanna S. Epp (p. 407).

For any positive real numbers \(b\), \(c\), and \(x\), with \(b \neq 1\) and \(c \neq 1\),

\[ log_{c}x = \frac{log_{b}x}{log_{b}c}.\]

Proof: Suppose positive real numbers \(b\), \(c\), and \(x\), with \(b \neq 1\) and \(c \neq 1\). Let

\[ \begin{align*} u = log_{b}c \>\>\>\> (1) \\ v = log_{c}x \>\>\>\> (2) \\ w = log_{b}x \>\>\>\> (3) \end{align*} \]

Then, by definition of logarithm,

\[ \begin{align*} c = b^u \>\>\>\> (1') \\ x = c^v \>\>\>\> (2') \\ x = b^w \>\>\>\> (3') \end{align*} \] Substituting (1’) into (2’) and using one of the laws of exponents, \((b^{u})^v = b^{uv}\), gives

\[ x = c^v = (b^u)^v = b^{uv} \]

But by (3’), \(x = b^w\) also. Hence

\[ b^{uv} = b^{w}, \]

and so by the one-to-oneness of the exponential function (if \(b^u = b^v\) then \(u = v\)),

\[ uv = w. \]

Substituting from (1), (2), and (3) gives that

\[ (log_{b}c)(log_{c}x) = log_{b}x. \]

And dividing both sides by \(log_{b}c\) (which is nonzero because \(c \neq 1\)) results in

\[ log_{c}x = \frac{log_{b}x}{log_{b}c}. \>\>\>\> \square\]