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?

Correct answer:

n =  119

Step-by-step explanation:

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 <<<<<<=====



Did you find an error or inaccuracy? Feel free to write us. Thank you!



avatar







Tips to related online calculators
Do you want to perform natural numbers division - find the quotient and remainder?

Related math problems and questions:

  • Shepherd
    sheep The shepherd has fewer than 500 sheep; where they can be up to 2, 3, 4, 5, 6 row is always 1 remain, and as can be increased up to 7 rows of the sheep, and it is not increased no ovine. How many sheep has a shepherd?
  • Fewer than 500 sheep,
    sheep-500 There are fewer than 500 sheep, but if they stand in a double, triple, quadruple, five, and sixth-order, one sheep will remain. But they can stand in the seventh order. How many are sheep?
  • Shepherd
    sheep Kuba makes a deal with a shepherd to take care of his sheep. Shepherd said to Kuba that he would receive twenty gold coins and one sheep after a year of service. But Kuba resigned just after the seventh month of service. But shepherd rewarded him and paid
  • Meadow
    ovce-miestami-baran On the meadow grazing horses, cows, and sheep, together with 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 equally. How many horses, cows, and sheep are on the meadow toget
  • Spartakiada
    spartakiada Practitioners lined up in rectangle with row with four, five or six exercisers, one always missing to full rectangle. How many exercisers were on the field, if they have estimated not been more than 100?
  • On a farm
    sheep-500 On a farm, there are 90 rabbits, 700 sheep, 300 cattle and 500 pigs. What percentage of the total number of animals are rabbits?
  • 7 digit number
    numbers2 If 3c54d10 is divisible by 330, what is the sum of c and d?
  • Cans
    konzervy How many cans must be put in the bottom row if we want 182 cans arrange in 13 rows above so that each subsequent row has always been one tin less? How many cans will be in the top row?
  • Divisibility
    numbers Write all the integers x divisible by seven and eight simultaneously, for which the following applies: 100 < x < 200.
  • The Hotel
    hotel-montfort-tatry-2 The Holiday Hotel has the same number of rooms on each floor. Rooms are numbered with natural numerals sequentially from the first floor, no number is omitted, and each room has a different number. Three tourists arrived at the hotel. The first one was in
  • Tourists
    tourists Tourists hire a guide. Everyone will pay the same amount. If there are two less of them, they will pay 14 crowns more, and if there are three more, they will pay 14 crowns less. How many tourists are there and how much have the guides paid.
  • Three numbers
    dices2 We have three different non-zero digits. We will create all 3 digits numbers from them to use all 3 figures in each number. We add all the created numbers, and we get the sum of 1554. What were the numbers?
  • Chairs
    chairs Determine the number of seats in the seventh row and ninth row, if the 3rd row has 14 seats and in every next row of seats has five more than the previous row.
  • Trees
    trees Loggers wanted to seed more than 700 and less than 800 trees. If they seed in rows of 37, left them 8 trees. If they seed in rows of 43, left the 11 trees. How many trees must seed ?
  • Students
    cinema2 In the front row sitting three students and in every other row 11 students more than the previous row. Determine how many students are in the room when the room is 9 lines, and determine how many students are in the seventh row.
  • Probably member
    math_series Look at the series 2,6,25,96,285, ? What number should come next?
  • Reminder and quotient
    prime There are given the number C = 281, D = 201. Find the highest natural number S so that the C:S, D:S are with the remainder of 1,