triplet formula