Fewer than 500 sheep,

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?

Correct result:

n =  301

Solution:

a%b = a modulo b

n=7: n%2=1, n%3=1, n%4=3, n%5=2, n%6=1, n%7=0
n=14: n%2=0, n%3=2, n%4=2, n%5=4, n%6=2, n%7=0
n=21: n%2=1, n%3=0, n%4=1, n%5=1, n%6=3, n%7=0
n=28: n%2=0, n%3=1, n%4=0, n%5=3, n%6=4, n%7=0
n=35: n%2=1, n%3=2, n%4=3, n%5=0, n%6=5, n%7=0
n=42: n%2=0, n%3=0, n%4=2, n%5=2, n%6=0, n%7=0
n=49: n%2=1, n%3=1, n%4=1, n%5=4, n%6=1, n%7=0
n=56: n%2=0, n%3=2, n%4=0, n%5=1, n%6=2, n%7=0
n=63: n%2=1, n%3=0, n%4=3, n%5=3, n%6=3, n%7=0
n=70: n%2=0, n%3=1, n%4=2, n%5=0, n%6=4, n%7=0
n=77: n%2=1, n%3=2, n%4=1, n%5=2, n%6=5, n%7=0
n=84: n%2=0, n%3=0, n%4=0, n%5=4, n%6=0, n%7=0
n=91: n%2=1, n%3=1, n%4=3, n%5=1, n%6=1, n%7=0
n=98: n%2=0, n%3=2, n%4=2, n%5=3, n%6=2, n%7=0
n=105: n%2=1, n%3=0, n%4=1, n%5=0, n%6=3, n%7=0
n=112: n%2=0, n%3=1, n%4=0, n%5=2, n%6=4, n%7=0
n=119: n%2=1, n%3=2, n%4=3, n%5=4, n%6=5, n%7=0
n=126: n%2=0, n%3=0, n%4=2, n%5=1, n%6=0, n%7=0
n=133: n%2=1, n%3=1, n%4=1, n%5=3, n%6=1, n%7=0
n=140: n%2=0, n%3=2, n%4=0, n%5=0, n%6=2, n%7=0
n=147: n%2=1, n%3=0, n%4=3, n%5=2, n%6=3, n%7=0
n=154: n%2=0, n%3=1, n%4=2, n%5=4, n%6=4, n%7=0
n=161: n%2=1, n%3=2, n%4=1, n%5=1, n%6=5, n%7=0
n=168: n%2=0, n%3=0, n%4=0, n%5=3, n%6=0, n%7=0
n=175: n%2=1, n%3=1, n%4=3, n%5=0, n%6=1, n%7=0
n=182: n%2=0, n%3=2, n%4=2, n%5=2, n%6=2, n%7=0
n=189: n%2=1, n%3=0, n%4=1, n%5=4, n%6=3, n%7=0
n=196: n%2=0, n%3=1, n%4=0, n%5=1, n%6=4, n%7=0
n=203: n%2=1, n%3=2, n%4=3, n%5=3, n%6=5, n%7=0
n=210: n%2=0, n%3=0, n%4=2, n%5=0, n%6=0, n%7=0
n=217: n%2=1, n%3=1, n%4=1, n%5=2, n%6=1, n%7=0
n=224: n%2=0, n%3=2, n%4=0, n%5=4, n%6=2, n%7=0
n=231: n%2=1, n%3=0, n%4=3, n%5=1, n%6=3, n%7=0
n=238: n%2=0, n%3=1, n%4=2, n%5=3, n%6=4, n%7=0
n=245: n%2=1, n%3=2, n%4=1, n%5=0, n%6=5, n%7=0
n=252: n%2=0, n%3=0, n%4=0, n%5=2, n%6=0, n%7=0
n=259: n%2=1, n%3=1, n%4=3, n%5=4, n%6=1, n%7=0
n=266: n%2=0, n%3=2, n%4=2, n%5=1, n%6=2, n%7=0
n=273: n%2=1, n%3=0, n%4=1, n%5=3, n%6=3, n%7=0
n=280: n%2=0, n%3=1, n%4=0, n%5=0, n%6=4, n%7=0
n=287: n%2=1, n%3=2, n%4=3, n%5=2, n%6=5, n%7=0
n=294: n%2=0, n%3=0, n%4=2, n%5=4, n%6=0, n%7=0
n=301: n%2=1, n%3=1, n%4=1, n%5=1, n%6=1, 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 calculate least common multiple two or more numbers?
Do you want to perform natural numbers division - find the quotient and remainder?

Next similar math problems:

  • Sheep
    ships 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?
  • 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?
  • 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?
  • 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?
  • 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?
  • 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
  • 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
  • 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.
  • The florist
    ruze_6 The florist had 200 roses in the morning. During the day, more than half sold it. From the remaining roses, it will tie the bouquet. If a bouquet of 3, 4, 5 or 6 roses are bound, one always remains. How many roses from the morning shipment sold?
  • The florist
    ruze A consignment of 200 roses arrived at the florist in the morning. She sold more than half of them during the day. She wants to tie bouquets of the remaining roses. If she ties a bouquet of three, four, five or six roses, there will always be one rose left
  • School
    ziaci_6 Less than 500 pupils attend school. When it is sorted into pairs, one pupil remains. Similarly, when sorted into 3, 4, 5 and 6 members team one remains. Sorted to seven members teams, no left behind. How many pupils are attending this school?
  • 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?
  • Lesson exercising
    atomium The lesson of physical education, pupils are first divided into three groups so that each has the same number. The they redistributed, but into six groups. And again, it was the same number of children in each group. Finally they divided into nine equal g
  • Athletes
    olympics_4 Athletes at the stadium could enter two-steps, three-steps, four-steps, five-steps, six-steps. There were more than 100 but less than 200. How many athletes were there?
  • School year
    zosity At the beginning of the school year, 396 notebooks and 252 textbooks are ready to be distributed in the classroom. All pupils receive the same number of notebooks and the same amount of textbooks. How many pupils are there in the class if you know that th
  • Plums
    svestka In the bowl are plums. How many would be there if we can divide it equally among 8, 10 and 11 children?
  • 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?