prints out a formatted sequence