If the function f defined on (π6,π3) by f(x)=⎧⎪ ⎪ ⎪⎨⎪ ⎪ ⎪⎩√2cosx−1cotx−1,x≠π4k,x=π4 is continuous, then k is equal to?