The power of a lens measures how strongly it converges or diverges light. A lens that bends rays sharply brings them to a focus close to the lens, so it has a short focal length; a weak lens focuses rays far away. Power is therefore defined as the reciprocal of the focal length, \[P = \frac{1}{f},\] with \(f\) in metres. The unit of \(P\) is the dioptre (\(\text{D}\)), which is simply \(\text{m}^{-1}\). So the power in dioptres is \(\frac{1}{f}\).
Two details make the definition work. First, \(f\) must be expressed in metres before taking the reciprocal: a lens of focal length \(20\,\text{cm} = 0.20\,\text{m}\) has \[P = \frac{1}{0.20} = +5.0\,\text{D}.\] Second, the sign of \(f\) carries through, so a converging (convex) lens has positive power and a diverging (concave) lens has negative power. Powers also add for thin lenses placed in contact, \(P = P_1 + P_2\), which is exactly why opticians quote lenses in dioptres rather than in centimetres.
Expressions such as \(f\), \(2f\) or \(3f\) cannot be correct because they grow as the focal length grows, which would say that a lens focusing light far away is the more powerful one. They also have the wrong unit: metres instead of \(\text{m}^{-1}\). A quick unit check on any formula offered in an optics question will usually eliminate the distractors immediately, and remember to convert centimetres to metres before computing a dioptre value.