Find the value of k for which the quadratic equation (3k+1)x2+2(k+1)x+1=0 has equal roots. Also, find the roots.