The density of states for carbon nanotubes in a uniform magnetic field