Last updated: 2019-01-25

Checks: 2 0

This reproducible R Markdown analysis was created with workflowr (version 1.1.1.9001). 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:    .Rproj.user/

Untracked files:
    Untracked:  docs/style.css

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
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\)