Metamath Proof Explorer


Definition df-fmtno

Description: Define the function that enumerates theFermat numbers, see definition in ApostolNT p. 7. (Contributed by AV, 13-Jun-2021)

Ref Expression
Assertion df-fmtno FermatNo = n 0 2 2 n + 1

Detailed syntax breakdown

Step Hyp Ref Expression
0 cfmtno class FermatNo
1 vn setvar n
2 cn0 class 0
3 c2 class 2
4 cexp class ^
5 1 cv setvar n
6 3 5 4 co class 2 n
7 3 6 4 co class 2 2 n
8 caddc class +
9 c1 class 1
10 7 9 8 co class 2 2 n + 1
11 1 2 10 cmpt class n 0 2 2 n + 1
12 0 11 wceq wff FermatNo = n 0 2 2 n + 1