generate tri-oct numbers