Parity classifies an integer as odd or even. Testing i % 2 gives a nonzero result for odd numbers and zero for even numbers. section 9.1.4
Marking triangle numbers
A C++ ranges transformation converts triangle numbers into characters: '.' marks odd values and '*' marks even values. The output reveals a repeating pattern of two odd numbers followed by two even numbers. section 9.1.4

