7 kyu

If n is even, then (n/2-1)*2 = n-2

Description:

Prove that if 2 | n, then 2(n21)=n22\left(\frac{n}{2}-1\right)=n-2. Don't worry about ring problems with nats, because it will be done with ints.

It would be true even if n was not even (no pun intended :p), but not with integer division, and we don't want to worry about decimals.

Theorem Proving
Fundamentals

Stats:

CreatedJun 20, 2020
PublishedJun 20, 2020
Warriors Trained131
Total Skips11
Total Code Submissions64
Total Times Completed42
Lean Completions42
Total Stars1
% of votes with a positive feedback rating94% of 9
Total "Very Satisfied" Votes8
Total "Somewhat Satisfied" Votes1
Total "Not Satisfied" Votes0
Total Rank Assessments5
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • user8436785 Avatar
  • monadius Avatar
Ad