Metamath Proof Explorer


Theorem nn0onn0ex

Description: For each odd nonnegative integer there is a nonnegative integer which, multiplied by 2 and increased by 1, results in the odd nonnegative integer. (Contributed by AV, 30-May-2020)

Ref Expression
Assertion nn0onn0ex N0N+120m0N=2m+1

Proof

Step Hyp Ref Expression
1 nn0o N0N+120N120
2 simpr N0N120N120
3 oveq2 m=N122m=2N12
4 3 oveq1d m=N122m+1=2N12+1
5 4 eqeq2d m=N12N=2m+1N=2N12+1
6 5 adantl N0N120m=N12N=2m+1N=2N12+1
7 nn0cn N0N
8 peano2cnm NN1
9 7 8 syl N0N1
10 2cnd N02
11 2ne0 20
12 11 a1i N020
13 9 10 12 divcan2d N02N12=N1
14 13 oveq1d N02N12+1=N-1+1
15 npcan1 NN-1+1=N
16 7 15 syl N0N-1+1=N
17 14 16 eqtr2d N0N=2N12+1
18 17 adantr N0N120N=2N12+1
19 2 6 18 rspcedvd N0N120m0N=2m+1
20 1 19 syldan N0N+120m0N=2m+1