A number
where is an integer or rational number, is the inverse tangent, and is the inverse cotangent. Gregory numbers arise in the determination of Machin-like formulas. Every Gregory number can be expressed uniquely as a linear combination of s where the s are Størmer numbers.