In this way, each nonnegative integer gets one of two colors. For example, if a=3, b=5, then the colors of the numbers (in the order from 0) are: white (0), b...
We know that prime numbers are positive integers that have exactly two distinct positive divisors. Similarly, we’ll call a positive integer t Т-prime, if t has ...
B. Bear and Friendship Conditiontime limit per test:1 secondmemory limit per test:256 megabytesinput:standard inputoutput:standard outputBear Limak examine...