Let's assume we stack them in equal stacks. Let the number of stacks be x. Then, the number of cubes in each stack will be 40/x.
Now, we need to find the possible values of x. The factors of 40 are 1, 2, 4, 5, 8, 10, 20, and 40. So, we can have 1, 2, 4, 5, 8, 10,
Show more…