Skip to content

Commit

Permalink
Merge pull request #8 from reednel/develop
Browse files Browse the repository at this point in the history
Content additions
  • Loading branch information
Reed Nelson committed Aug 7, 2023
2 parents 5113af0 + 65812f3 commit da1abe8
Show file tree
Hide file tree
Showing 47 changed files with 5,728 additions and 1,726 deletions.
6,444 changes: 4,976 additions & 1,468 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "astroplate",
"name": "reednel.com",
"version": "1.4.1",
"description": "Astro and Tailwindcss boilerplate",
"author": "zeon.studio",
"description": "Reed Nelson's personal website.",
"author": "reednel",
"license": "MIT",
"packageManager": "[email protected]",
"scripts": {
Expand Down Expand Up @@ -36,8 +36,7 @@
"remark-collapse": "^0.1.2",
"remark-math": "^5.1.1",
"remark-toc": "^8.0.1",
"sharp": "^0.32.4",
"swiper": "^10.1.0"
"sharp": "^0.32.4"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.4",
Expand Down
9 changes: 2 additions & 7 deletions src/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,8 @@
"default_theme": "system",
"pagination": 2,
"summary_length": 200,
"blog_folder": "blog"
},

"navigation_button": {
"enable": true,
"label": "Get Started",
"link": "https://github.com/reednel/pages"
"blog_folder": "blog",
"drink_folder": "drinks"
},

"metadata": {
Expand Down
4 changes: 4 additions & 0 deletions src/config/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"name": "About",
"url": "/about"
},
{
"name": "Projects",
"url": "/projects"
},
{
"name": "Blog",
"url": "/blog"
Expand Down
20 changes: 0 additions & 20 deletions src/content/authors/john-doe.md

This file was deleted.

20 changes: 0 additions & 20 deletions src/content/authors/sam-wilson.md

This file was deleted.

20 changes: 0 additions & 20 deletions src/content/authors/william-jacob.md

This file was deleted.

143 changes: 143 additions & 0 deletions src/content/blog/ent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
---
title: "Fun Problems in Number Theory"
meta_title: ""
description: "none"
date: 2023-08-07T05:00:00Z
image: ""
categories: ["Mathematics"]
author: "Reed Nelson"
tags: ["math", "puzzles"]
draft: true
---

## Easy

### yeah

## Medium

### A fact

Prove that a positive integer $n$ is prime if and only if $n$ is not divisible
by any prime $p$ with $1 < p \leq \sqrt{n}$.

Proving $\implies$
This follows directly from the definition of prime.

Proving $\impliedby$
Clearly if there were such a prime $p$ in range $(1, \sqrt{n}]$, n would not be prime. So then it suffices to show why the range $(\sqrt{n}, n)$ need not be checked.
The largest value that can be produced by a pair in range $(1, \sqrt{n}]$ is $\sqrt{n} \cdot \sqrt{n} = n$.
That means in order for a value greater than $\sqrt{n}$ to be a divisor, so too must there be a value less than $\sqrt{n}$.
So if no such value less than $\sqrt{n}$ exists, no such value greater than $\sqrt{n}$ can exist.

### Facto

Prove that if $n > 4$ is composite then $n | (n - 1)!$.

An equivalent statement: if $n > 4$ is composite, then $n$ is a factor of $(n-1)!$.
$n$ is a product of prime factors.
If all such factors are unique in the product, then trivially they are all present in the product $(n-1)!$.
If there are duplicates, they can be thought of as multiplying to unique composite numbers less than $n$, due to the fundamental theorem of arithmetic.
The only time this is not true is for the composite $n = 4$, since $3!$ is divisible by no composite numbers.
Hence, all prime factors of $n$ can be accounted for in $(n-1)!$ when $n > 4$, so $n$ is a factor of $(n-1)!$.

### Another Fact

Prove that if a positive integer n is a perfect square, then n
cannot be written in the form $4k + 3$ for $k$ an integer.

Hint: Compute the remainder upon division by 4 of each of $(4m)^2$, $(4m + 1)^2$, $(4m + 2)^2$, and $(4m + 3)^2$.

Any positive integer of the form $4k+3$ is congruent to $3 (mod 4)$.
If $n$ is even, then $n^2$ is even, and trivially cannot be of the form $4k+3$.
If $n$ is odd, then $n = 2m + 1$, $m \in \mathbb{N}$.
Then $(2m+1)^2 = 4m^2 + 4m + 1$, which is congruent to 3 (mod 4), so cannot be of the form $4k+3$.

### Follow-up Fact

Prove that no integer in the sequence

$11$, $111$, $1111$, $11111$, $\dots$

is a perfect square.

Hint: $111 \dots 111 = 111 \dots 108 + 3 = 4k+ 3$.

Per the hint, all integers in the given sequence are of the form $4k+3$, and we just showed that no positive integer of that form may be a perfect square, so we are done.

### A series of fun facts

#### 3

A number $n \in \mathbb{Z}$ is divisible by 3 if and only if the sum of the digits of $n$ is divisible by 3.

Proof: write $n = a + 10b + 100c + \dots$, where the digits of $n$ are $a, b, c, \dots$. Since $10 \equiv 1 \pmod{3}$, $n = a + 10b + 100c + \dots \equiv a, b, c, \dots \pmod{3}$. The proposition follows.

#### 5

A number $n \in \mathbb{Z}$ is divisible by 5 if and only if the rightmost digit is 5 or 0.

Write $n = a + 10b + 100c + \dots$.
Since $10 \equiv 0 \pmod{5}$, $n = a + 10b + 100c + \dots \equiv a \pmod{5}$.
The only nonnegative integers less than 10 (i.e. that $a$ could be) are 5 or 0.
From this, the propositon follows.

#### 9

A number $n \in \mathbb{Z}$ is divisible by 9 if and only if the sum of the digits is.

Write $n = a + 10b + 100c + \dots$.
Since $10 \equiv 1 \pmod{9}$, $n = a + 10b + 100c + \dots \equiv a + b + c + \dots \pmod{9}$.
From this, the propositon follows.

#### 11

A number $n \in \mathbb{Z}$ is divisible by 11 if and only if the difference between the sum of the digits at even indices and the ones at odd indices are congruent to $0 \pmod{11}$.

Write $n = a + 10b + 100c + \dots$.
Since $10 \equiv -1 \pmod{11}$, $n = a + 10b + 100c + \dots \equiv -a + b - c + \dots \pmod{11}$.
From this, the propositon follows.

Additional note:
*Definition* (Palindrome): let the digits of $n \in \pmod{11}$ be of the form $abc...cba$. Then $n$ is a palindrome.

*Remark*: From the proof above, it follows that all even-length palindromes are divisible by 11.

*Conjecture*: All palindromes divisible by 11 are such that the product of their digits is a perfect square.

### One more

Prove that if $p$ is a positive integer such that both $p$ and $p^2 + 2$ are prime, then $p = 3$.

Trivially, 2 does not satisfy the conditons and 3 does.
Now we consider only prime $p > 3$.
Every third integer is a multiple of 3, yet no $p$ is.
So for all $p$, it is either that $3 \mid p + 1$ or $3 \mid p + 2$.
That is, $p \equiv 1 \pmod{3}$ or $p \equiv -1 \pmod{3}$.
In either case, this gives $p^2 \equiv 1 \pmod{3}$, so $p^2 + 2 \equiv 0 \pmod{3}$.
Therefore, for all primes greater than 3, $3 | p^2 + 2$, and $p^2 + 2$ is composite.

## Hard

### Fermat's Last Theorem

Prove that no triple $a, b, c, \in \mathbb{N}$ satisfy the equation $a^n + b^n = c^n$, where $n \in \mathbb{N}$ is greater than $2$.

### Collatz Conjecture

Consider the following operation on an arbitrary positive integer:

$
f(n) = \left\{
\begin{array}{lr}
n / 2, & \text{if } n \equiv 0 \pmod{2}\\
3n + 1, & \text{if }n \equiv 1 \pmod{2}
\end{array}
\right\}
$

Prove that for all $n$, this function will eventually return 1.

### Goldbach's Conjecture

Prove that every even $n \in \mathbb{n}$ greater than 2 is the sum of two primes.
24 changes: 20 additions & 4 deletions src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,29 @@ const blogCollection = defineCollection({
}),
});

// Author collection schema
const authorsCollection = defineCollection({
// Drinks collection schema
const drinkCollection = defineCollection({
schema: z.object({
title: z.string(),
meta_title: z.string().optional(),
email: z.string().optional(),
description: z.string().optional(),
date: z.date().optional(),
image: z.string().optional(),
author: z.string().default("Admin"),
categories: z.array(z.string()).default(["others"]),
tags: z.array(z.string()).default(["others"]),
draft: z.boolean().optional(),
}),
});

// Project collection schema
const projectCollection = defineCollection({
schema: z.object({
title: z.string(),
meta_title: z.string().optional(),
description: z.string().optional(),
technologies: z.array(z.string()).default(["others"]),
order: z.number().default(0),
social: z
.array(
z
Expand Down Expand Up @@ -52,6 +67,7 @@ const pagesCollection = defineCollection({
// Export collections
export const collections = {
blog: blogCollection,
authors: authorsCollection,
drinks: drinkCollection,
projects: projectCollection,
pages: pagesCollection,
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Authors"
title: "Drinks"
meta_title: ""
description: "this is meta description"
---
13 changes: 13 additions & 0 deletions src/content/drinks/drink1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "Drink 1"
meta_title: ""
description: "none"
date: 2022-08-30T05:00:00Z
image: ""
categories: ["Drink"]
author: "Reed Nelson"
tags: ["drink"]
draft: false
---

This is a recipe.
13 changes: 13 additions & 0 deletions src/content/drinks/drink2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "Drink 2"
meta_title: ""
description: "none"
date: 2022-09-30T05:00:00Z
image: ""
categories: ["Drink2"]
author: "Reed Nelson"
tags: ["drink2"]
draft: false
---

This is a recipe.
13 changes: 13 additions & 0 deletions src/content/drinks/drink3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "Drink 3"
meta_title: ""
description: "none"
date: 2022-10-30T05:00:00Z
image: ""
categories: ["Drink"]
author: "Reed Nelson"
tags: ["drink"]
draft: false
---

This is a recipe.
15 changes: 5 additions & 10 deletions src/content/homepage/-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@
# Banner
banner:
title: "Reed Nelson"
content: "Astroplate is a free starter template built with Astro and TailwindCSS, providing everything you need to jumpstart your Astro project and save valuable time."
content: "Words"

# Features
features:
- title: "What's Included in Astroplate"
image: "/images/service-1.png"
content: "Astroplate is a comprehensive starter template that includes everything you need to get started with your Astro project. What's Included in Astroplate"
- title: "Another Section"
content: "words"
bulletpoints:
- "10+ Pre-build pages"
- "95+ Google Pagespeed Score"
button:
enable: false
label: "Get Started Now"
link: "#"
- "a"
- "b"

---
5 changes: 5 additions & 0 deletions src/content/projects/-index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "Projects"
meta_title: ""
description: "this is meta description"
---
12 changes: 12 additions & 0 deletions src/content/projects/aag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: AAG Key Exchange Implementation
description: this is meta description
technologies: ["Python", "SageMath"]
order: 2
social:
- name: github
icon: FaGithub
link: https://github.com/reednel/aag
---

This progect provides the first generic implementation of AAG, using the SageMath computer algebra system. This enables the direct and convenient comparison between different platform groups, which is something largely lacking in existing literature. For a more detailed explanation of AAG and this program's capabilities, see [this paper](https://github.com/reednel/aag/blob/paper/main.pdf).
Loading

0 comments on commit da1abe8

Please sign in to comment.