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



We would be pleased if you find an error in the word problem, spelling mistakes, or inaccuracies and send it to us. Thank you!






Showing 0 comments:
avatar




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

Next similar math problems:

  • Shepherd
    sheep_1 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_1 Kuba makes a deal with a shepherd to take care of his sheep. Shepherd said Kuba that after a year of service, he would receive twenty gold coins and one sheep. But Kuba resigned just after the seventh month of service. But shepherd rewarded him and paid h
  • 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
  • On a farm
    sheep-500_3 On a farm, there are 90 rabbits, 700 sheep, 300 cattle and 500 pigs. What percentage of the total number of animals are rabbits?
  • Spartakiada
    spartakiada_1 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?
  • 7 digit number
    numbers2_49 If 3c54d10 is divisible by 330, what is the sum of c and d?
  • The Hotel
    hotel-montfort-tatry-2_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
  • 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?
  • Three numbers
    dices2_9 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?
  • Divisibility
    numbers_29 Write all the integers x divisible by seven and eight at the same time for which the following applies: 100 < x < 200.
  • Trees
    trees_1 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 ?
  • Chairs
    chairs Determine the number of seats in the seventh row and ninth row, if 3rd row has 14 seats and in every next row of seats has five more than the previous row.
  • Reminder and quotient
    prime_5 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,
  • Probably member
    math_series Look at the series 2,6,25,96,285, ? What number should come next?
  • 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.
  • Diofant equation
    eq222_19 250x + 120y = 5640