Numbers

Write smallest three-digit number, which in division 5 and 7 gives the rest 2.

Result

x =  107

Solution:

```for(\$i=100;\$i<999;\$i++)
{
if(\$i%5==2 && \$i%7==2)
{
break;
}
}
```

Leave us a comment of example and its solution (i.e. if it is still somewhat unclear...):

Be the first to comment!

Next similar examples:

1. Unknown number
Unknown number is divisible by exactly three different primes. When we compare these primes in ascending order, the following applies: • Difference first and second prime number is half the difference between the third and second prime numbers. • The produ
2. Divisible by 5
How many three-digit odd numbers divisible by 5, which are in place ten's number 3?
3. Amazing number
An amazing number is name for such even number, the decomposition product of prime numbers has exactly three not necessarily different factors and the sum of all its divisors is equal to twice that number. Find all amazing numbers.
4. Combinations
How many different combinations of two-digit number divisible by 4 arises from the digits 3, 5 and 7?
5. Divisors
The sum of all divisors unknown odd number is 2112. Determine sum of all divisors of number which is twice of unknown numbers.
6. Chebyshev formula
To estimate the number of primes less than x is used Chebyshev formula: ? Estimate the number of primes less than 30300537.
7. Trees
A certain species of tree grows an average of 0.5 cm per week. Write an equation for the sequence that represents the weekly height of this tree in centimeters if the measurements begin when the tree is 200 centimeters tall.
8. Theorem prove
We want to prove the sentense: If the natural number n is divisible by six, then n is divisible by three. From what assumption we started?
9. Volleyball
8 girls wants to play volleyball against boys. On the field at one time can be six players per team. How many initial teams of this girls may trainer to choose?
10. Factory and divisions
The factory consists of three auxiliary divisions total 2,406 employees. The second division has 76 employees less than 1st division and 3rd division has 212 employees more than the 2nd. How many employees has each division?
11. Seamstress 2
Seamstress bought two kinds of textile in whole meters. One at 50 SKK and the second 70 SKK per meter. How many meter bought from this two textiles when paid totally 1540 SKK?
12. 6 terms
Find the first six terms of the sequence. a1 = 7, an = an-1 + 6
13. Tickets
Tickets to the zoo cost \$4 for children, \$5 for teenagers and \$6 for adults. In the high season, 1200 people come to the zoo every day. On a certain day, the total revenue at the zoo was \$5300. For every 3 teenagers, 8 children went to the zoo. How man
14. Two equations
Solve equations (use adding and subtracting of linear equations): -4x+11y=5 6x-11y=-5
15. Functions f,g
Find g(1) if g(x) = 3x - x2 Find f(5) if f(x) = x + 1/2
16. One half
One half of ? is: ?
17. Powers
Express the expression ? as the n-th power of the base 10.