Metamath Proof Explorer


Theorem flnn0ohalf

Description: The floor of the half of an odd positive integer is equal to the floor of the half of the integer decreased by 1. (Contributed by AV, 5-Jun-2012)

Ref Expression
Assertion flnn0ohalf N 0 N + 1 2 0 N 2 = N 1 2

Proof

Step Hyp Ref Expression
1 nn0ofldiv2 N 0 N + 1 2 0 N 2 = N 1 2
2 nn0o N 0 N + 1 2 0 N 1 2 0
3 2 nn0zd N 0 N + 1 2 0 N 1 2
4 flid N 1 2 N 1 2 = N 1 2
5 3 4 syl N 0 N + 1 2 0 N 1 2 = N 1 2
6 1 5 eqtr4d N 0 N + 1 2 0 N 2 = N 1 2