The Casimir energy for the transverse oscillations of piecewise uniform bos
onic strings with either untwisted or twisted continuous conditions is disc
ussed. After calculating the analytic values of zeros of the dispersion fun
ction under certain conditions, we obtain the Casimir energy for both open
and closed bosonic strings composed of two or three segments.