Skip to content

Commit 98bac99

Browse files
committed
Update Sun Apr 7 09:18:51 UTC 2024
1 parent db08996 commit 98bac99

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

Math2001/Homework/hw7.lean

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/- Copyright (c) Heather Macbeth, 2023. All rights reserved. -/
2+
import Mathlib.Tactic.GCongr
3+
import Library.Basic
4+
import Library.Tactic.ModEq
5+
import AutograderLib
6+
7+
math2001_init
8+
9+
10+
/-! # Homework 7
11+
12+
Don't forget to compare with the text version,
13+
https://github.com/hrmacbeth/math2001/wiki/Homework-7,
14+
for clearer statements and any special instructions. -/
15+
16+
17+
18+
@[autograded 4]
19+
theorem problem1 (n : ℕ) : 5 ^ n ≡ 1 [ZMOD 8] ∨ 5 ^ n ≡ 5 [ZMOD 8] := by
20+
sorry
21+
22+
@[autograded 4]
23+
theorem problem2 : forall_sufficiently_large n : ℕ, (3:ℤ) ^ n ≥ 2 ^ n + 100 := by
24+
dsimp
25+
sorry
26+
27+
def y : ℕ → ℕ
28+
| 0 => 2
29+
| n + 1 => (y n) ^ 2
30+
31+
@[autograded 4]
32+
theorem problem3 (n : ℕ) : y n = 2 ^ (2 ^ n) := by
33+
sorry
34+
35+
def B : ℕ → ℚ
36+
| 0 => 0
37+
| n + 1 => B n + (n + 1 : ℚ) ^ 2
38+
39+
@[autograded 4]
40+
theorem problem4 (n : ℕ) : B n = n * (n + 1) * (2 * n + 1) / 6 := by
41+
sorry
42+
43+
def b : ℕ → ℤ
44+
| 0 => 0
45+
| 1 => 1
46+
| n + 2 => 5 * b (n + 1) - 6 * b n
47+
48+
@[autograded 4]
49+
theorem problem5 (n : ℕ) : b n = 3 ^ n - 2 ^ n := by
50+
sorry
51+
52+
def r : ℕ → ℤ
53+
| 0 => 2
54+
| 1 => 0
55+
| n + 2 => 2 * r (n + 1) + r n
56+
57+
@[autograded 5]
58+
theorem problem6 : forall_sufficiently_large n : ℕ, r n ≥ 2 ^ n := by
59+
sorry

0 commit comments

Comments
 (0)