second part of pascal's triangle problems