Number of Ways to Build House of Cards
Each row of upright triangles costs a fixed number of cards. Fill a table of counts from zero cards up, adding the houses that sit on top of each row size.
Each row of upright triangles costs a fixed number of cards. Fill a table of counts from zero cards up, adding the houses that sit on top of each row size.