sum 1 for b=8 to 6