Numbers

Write smallest three-digit number, which in division 5 and 7 gives the rest 2.

Result

x =  107

Solution:

for($i=100;$i<999;$i++)
{
    if($i%5==2 && $i%7==2)
    {
	break;
    }
}








Leave us a comment of example and its solution (i.e. if it is still somewhat unclear...):

Showing 0 comments:
1st comment
Be the first to comment!
avatar




To solve this example are needed these knowledge from mathematics:

Next similar examples:

  1. Z9-I-4
    numbers_30 Kate thought a five-digit integer. She wrote the sum of this number and its half at the first line to the workbook. On the second line wrote a total of this number and its one fifth. On the third row she wrote a sum of this number and its one nines. Fi
  2. Diofant equation
    diofantos In the set of integers (Z) solve the equation: ? Write result with integer parameter ? (parameter t = ...-2,-1,0,1,2,3... if equation has infinitely many solutions)
  3. Divisibility
    dots Determine the smallest integer which divided 11 gives remainder 4 when divided 15 gives remainder 10 and when divided by 19 gives remainder 16.
  4. Digit sum
    cisla_7 How many are three-digit numbers that have a digit sum of 6?
  5. Snowman 2
    snowman_1 On the medal, which has the shape of a circle with a diameter 18 cm is sketched snowman so that the following requirements are met: 1. snowman is composed of three circles, 2. space over snowman is the same as under it, 3. diameters of all circles express
  6. No. of divisors
    triangle_div How many different divisors has number ??
  7. Birthdate
    lizatka Jane on birthday brought 30 lollipops and 24 chewing gum for their friends. How many friends has, if everyone receives the same number of lollipops and chewing gums? How much chewing gum and lollipops got any friend?
  8. Tiles
    tiles_1 The room has dimensions 12 m and 5.6 m. Determine the number of square tiles and their largest possible size to cover them room's floor.
  9. Rectangles
    rectangles How many rectangles with area 3002 cm2 whose sides is natural numbers are?
  10. Segments
    segments Line segments 67 cm and 3.1 dm long we divide into equal parts which lengths in centimeters is expressed integer. How many ways can we divide?
  11. Meadow
    ovce-miestami-baran On the meadow grazing horses, cows and sheep, together less than 200. If cows were 45 times more, horses 60 times more and sheep 35 times more than there are now, their numbers would equall. How many horses, cows and sheep are on the meadow together?
  12. Lines
    bus Five bus lines runs at intervals 3, 6, 9, 12, 15 minutes. In the morning, suddenly start at 4:00. After how many minutes the bus lines meet again?
  13. Count of roots
    eggs How many solutions has equation x. y = 7757 with two unknowns on the set of natural numbers?
  14. 9.A
    exam 9.A to attend more than 20 students but fewer than 40 students. A third of the pupils wrote a math test to mark 1, the sixth to mark 2, the ninth to mark 3. No one gets mark 4. How many students of class 9.A wrote a test to mark 5?
  15. Diofant 2
    1diofantos Is equation ? solvable on the set of integers Z?
  16. Tiles
    dlazdice From how many tiles 20 cm by 30 cm we can build a square of maximum dimensions, if we have maximum 881 tiles.
  17. Plumber
    klempir Plumber had to cut the metal strip with dimensions 380 cm and 60 cm to the largest squares so that no waste. Calculate the length of the sides of a square. How many squares cut it?