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



Our examples were largely sent or created by pupils and students themselves. Therefore, we would be pleased if you could send us any errors you found, spelling mistakes, or rephasing the example. Thank you!





Please write to us with your comment on the math problem or ask something. Thank you for helping each other - students, teachers, parents, and problem authors.

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:

  • Plum
    plumbs_1 On the platter are plum. How many were there if its have to be able to share equally among 8,10 and 12 children?
  • Bouquet
    flowers_1 Gardener tying bouquet of flowers for 8 and none was left. Then he found that he could tying bouquet of 6 flowers and also none was left. How many have gardener flowers (minimum and maximum) if they had between 50 and 100 flowers?
  • Janka and Danka
    books_3 Janka and Danka began to read the same day the books. Janka had 276 pages, Danka 204 pages. They agreed that both read every day the same number of pages until theirs books read. A) How many maximum pages they had to read the day to honor their agreement?
  • Games
    chess Jack and Paul decided to play chess against each other. They bet ten pesos on each game they played. Jack won three bets and Paul won fifty pesos. How many games did they play?
  • Write decimals
    numbers_34 Write in the decimal system the short and advanced form of these numbers: a) four thousand seventy-nine b) five hundred and one thousand six hundred and ten c) nine million twenty-six
  • Log
    5962705_ad Worker cut his thick log to 6 pieces for 30 min. How long he cut log to 12 pieces?
  • Gearing
    prevod Gearing consists of two wheels, one is 88 and second 56 teeth. How many times turns smaller wheel to fit the same teeth as in the beginning? How many times will turn biggest wheel?
  • The port
    port Four ships Berthed in the port. Together sail from a port. The first ship will return to port every two weeks, second ship after 4 weeks, third after 8 weeks and fourth ship after 12 weeks. After how many weeks all the boats gather at the port?
  • Gears
    ozub_kola The gearing fits wheel with 20 teeth to the wheel with 36 teeth. Before starting the machine is stained tooth smaller wheels in the designated space between the teeth of the larger wheels. How many times after starting the machine wheels turning that stai
  • By six
    numbers_1 From the digits 1,2,3,4 we create the long integer number 123412341234. .. .. , which will have 962 digits. Is this number divisible by 6?
  • Divisibility
    nice_circles Determine all divisors of number 84.
  • Remainder
    dice What is the remainder of the division of natural numbers 293 and 7?
  • School
    ratios_2 Headteacher think whether the distribution of pupils in race in groups of 4,5,6,9 or 10. How many pupils must have at least school at possible options?
  • To improve
    one_2 To improve her handwriting Paula practices writing the numbers 1 to 200 in words. How many times will she have written the word "one" in all?
  • Divide 5
    ratios2 Divide 288 in the following ratio 3 : 4 : 5
  • Last page
    books_44 Two consecutive sheets dropped out of the book. The sum of the numbers on the sides of the dropped sheets is 154. What is the number of the last page of the dropped sheets?
  • Symbols
    my If 2*3 = 60 ; 3*4 = 120 and 4*5 = 200, what is 2*5?