Pascal triangle resolver