Quantum dynamics of small numbers of ions in a penning trap