Pascal's triangle, coloured by p

Binomial coefficients coloured by the power of p dividing them (Kummer) or by their residue (Lucas).

prime p rows colour by
…