Sheep

Shepherd tending the sheep. Tourists asked him how much they have. The shepherd said, "there are fewer than 500. If I them lined up in 4-row 3 remain. If in 5-row 4 remain. If in 6-row 5 remain. But I can form 7-row." How many sheep have herdsman?

Result

n =  119

Solution:

a%b = a modulo b

n=7: n%4=3, n%5=2, n%6=1, n%7=0
n=14: n%4=2, n%5=4, n%6=2, n%7=0
n=21: n%4=1, n%5=1, n%6=3, n%7=0
n=28: n%4=0, n%5=3, n%6=4, n%7=0
n=35: n%4=3, n%5=0, n%6=5, n%7=0
n=42: n%4=2, n%5=2, n%6=0, n%7=0
n=49: n%4=1, n%5=4, n%6=1, n%7=0
n=56: n%4=0, n%5=1, n%6=2, n%7=0
n=63: n%4=3, n%5=3, n%6=3, n%7=0
n=70: n%4=2, n%5=0, n%6=4, n%7=0
n=77: n%4=1, n%5=2, n%6=5, n%7=0
n=84: n%4=0, n%5=4, n%6=0, n%7=0
n=91: n%4=3, n%5=1, n%6=1, n%7=0
n=98: n%4=2, n%5=3, n%6=2, n%7=0
n=105: n%4=1, n%5=0, n%6=3, n%7=0
n=112: n%4=0, n%5=2, n%6=4, n%7=0
n=119: n%4=3, n%5=4, n%6=5, n%7=0 <<<<<<=====







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




Next similar examples:

  1. 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?
  2. 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?
  3. 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.
  4. Digit sum
    cisla_7 How many are three-digit numbers that have a digit sum of 6?
  5. 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?
  6. 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
  7. 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.
  8. 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.
  9. 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?
  10. No. of divisors
    triangle_div How many different divisors has number ??
  11. Count of roots
    eggs How many solutions has equation x. y = 7757 with two unknowns on the set of natural numbers?
  12. 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)
  13. 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?
  14. Rectangles
    rectangles How many rectangles with area 3002 cm2 whose sides is natural numbers are?
  15. 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?
  16. 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
  17. Diofant 2
    1diofantos Is equation ? solvable on the set of integers Z?