n = length(u)
