Sugar - cuboid

Pejko received from his master cuboid composed of identical sugar cubes with count between 1000 and 2000. The Pejko eat sugar cubes in layers.
The first day eat one layer from the front, second day one layer from right, the third day one layer above. Yet in those three layers were each the same number of cubes. Find out how many cubes had original cuboid. Determine all possibilities.

Result

V1 =  1320
V2 =  1716

Solution: PHP program:

for(\$a=1; \$a<1000; \$a++)
{
for(\$b=1; \$b<1000; \$b++)
{
for(\$c=1; \$c<1000; \$c++)
{
\$V = \$a*\$b*\$c;
if(\$V > 2000 || \$V<1000)
{
continue;
}

if(\$a*\$b == (\$c-1)*\$b && (\$c-1)*\$b == (\$a-1)*(\$c-1))
{
echo "\$V = \$a * \$b * \$c <br>";
}
}
}
}

Leave us a comment of this math problem and its solution (i.e. if it is still somewhat unclear...): Be the first to comment! To solve this verbal math problem are needed these knowledge from mathematics:

Do you solve Diofant problems and looking for a calculator of Diofant integer equations? Tip: Our volume units converter will help you with the conversion of volume units.

Next similar math problems:

1. Volume increase How many percent will increase in the pool 50 m, width 15m if the level rises from 1m to 150cm?
2. Cuboid and ratio Cuboid has dimensions in ratio 1:2:6 and the surface area of the cuboid is 1000 dm2. Calculate the volume of the cuboid.
3. Tray Wjat height reach water level in the tray shaped a cuboid, if it is 420 liters of water and bottom dimensions are 120 cm and 70 cm.
4. Digging A pit is dug in the shape of a cuboid with dimensions 10mX8mX3m. The earth taken out is spread evenly on a rectangular plot of land with dimensions 40m X 30m. What is the increase in the level of the plot ?
5. Juice box 2 Box with juice has the shape of a cuboid. Internal dimensions are 15 cm, 20 cm and 32 cm. If the box stay at the smallest base juice level reaches 4 cm below the upper base. How much internal volume of the box fills juice? How many cm below the top of the
6. Swimming pool The pool shape of cuboid is 299 m3 full of water. Determine the dimensions of its bottom if water depth is 282 cm and one bottom dimension is 4.7 m greater than the second.
7. Theorem prove We want to prove the sentence: If the natural number n is divisible by six, then n is divisible by three. From what assumption we started?
8. Divisors The sum of all divisors unknown odd number is 2112. Determine sum of all divisors of number which is twice of unknown numbers.
9. Sportsman A trained athlete is able to exhale after a deep breath still 500 ml of air. At normal inhalation and exhalation is breathing 500 ml of air. Within one minute, one breath and exhaled 14 times. What part of breathing air per day is one exhalation?
10. Gasholder The gasholder has spherical shape with a diameter 20 m. How many m3 can hold in?
11. Unknown number Unknown number is divisible by exactly three different primes. When we compare these primes in ascending order, the following applies: • Difference first and second prime number is half the difference between the third and second prime numbers. • The produ
12. Gasoline 35 l of gasoline is to be divided into four canisters so that in the third canister was 5 l less than the first canister, the fourth canister 10 l more than in the third canister and the second canister half what in the first canister. How many liters of.
13. The dice What is the probability of events that if we throw a dice is rolled less than 6?
14. Antennas If you give me two antennas will be same. If you give me again your two antenna I have a 5× so many than you. How many antennas have both mans?
15. Basket of fruit In six baskets, the seller has fruit. In individual baskets, there are only apples or just pears with the following number of fruits: 5,6,12,14,23 and 29. "If I sell this basket," the salesman thinks, "then I will have just as many apples as a pear." Which
16. Numbers Write smallest three-digit number, which in division 5 and 7 gives the rest 2.
17. Candies If Alena give Lenka 3 candy will still have 1 more candy. If Lenka give Alena 1 candy Alena will hame twice more than Lenka. How many candies have each of them?