Tribonacci-like sequences and generalized Pascal's pyramids