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


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:

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

You need to know the following knowledge to solve this word math problem:

Next similar math problems:

  • 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?
  • 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?
  • Endless lego set
    lego_2 The endless lego set contains only 6, 9, 20 kilograms blocks that can no longer be polished or broken. The workers took them to the gym and immediately started building different buildings. And of course, they wrote down how much the building weighed. The
  • 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?
  • Z9–I–4 MO 2017
    vlak2 Numbers 1, 2, 3, 4, 5, 6, 7, 8 and 9 were prepared for a train journey with three wagons. They wanted to sit out so that three numbers were seated in each carriage and the largest of each of the three was equal to the sum of the remaining two. The conduct
  • 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 ?
  • Forestry workers
    forestry_workers In the forest is employed 56 laborers planting trees in nurseries. For 8 hour work day would end job in 37 days. After 16 days, 9 laborers go forth? How many days are needed to complete planting trees in nurseries by others, if they will work 10 hours a d
  • Candy and boxes
    cukriky_13 We have some number of candy and empty boxes. When we put candies in boxes of ten, there will be 2 candies and 8 empty boxes left, when of eight, there will be 6 candies and 3 boxes left. How many candy and empty boxes left when we put candies in boxes of
  • Pool
    pool If water flows into the pool by two inlets, fill the whole for 19 hours. The first inlet filled pool 5 hour longer than the second. How long pool take to fill with two inlets separately?
  • Reminder and quotient
    prime_4 There are given numbers A = 135, B = 315. Find the smallest natural number R greater than 1 so that the proportions R:A, R:B are with the remainder 1.
  • Four poplars
    topolcany_1 Four poplars are growing along the way. The distances between them are 35 m, 14 m, and 91 m. At least how many poplars need to be dropped to create the same spacing between the trees? How many meters will it be?
  • The Hotel
    hotel-montfort-tatry-2_2 The Holiday Hotel has the same number of rooms on each floor. Rooms are numbered with natural numbers 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
  • Four classses
    think Students of all 7, 8 and 9 classes in one school may take up 4,5,6 and 7 abreast and nobody will left. How many is the average count of pupils in one class if there are always four classes each grade?
  • Trees in alley
    tree_6 There are four trees in the alley between which the distances are 35m, 15m and 95m. Trees must be laid in the spaces so that the distance is the same and the maximum. How many trees will they put in and what will be the distance between them?
  • Quiz or test
    test_2 I have a quiz with 20 questions. Each question has 4 multiple choice answers, A, B, C, D. THERE IS NO WAY TO KNOW THE CORRECT ANSWER OF ANY GIVEN QUESTION, but the answers are static, in that if the "correct" answer to #1 = C, then it will always be equal
  • Diophantus
    diofantos_1 We know little about this Greek mathematician from Alexandria, except that he lived around 3rd century A. D. Thanks to an admirer of his, who described his life through an algebraic riddle, we know at least something about his life. Diophantus's youth las
  • 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?