Tartaglia-Pascal’s triangle: a historical perspective with applications