normalize colour range, cycle through n=3,5,7; 1011 bytes