def triplet(n):
    """Find the Pythagorean triplet who's sum equals a given number."""
    for c in range(n - 3, 1, -1):
        for b in range(c - 1, 1, -1):
            a = (c**2 - b**2)**.5
            if a + b + c == n:
                return [c, b, int(a)]
    return False