Number Theory: Divisibility and Prime Numbers: Problems with Solutions

Number theory problems on divisibility, remainders, prime numbers, GCD and LCM, last digits and digit sums, with step-by-step solutions.

Problem 1
Find the last digit of the number [tex]P=1!+2!+3!+\ldots+2018![/tex].
Problem 2
Find the last digit of the number [tex]237^{127}[/tex].
Problem 3
Grandma Yana's grandchildren are [tex]1[/tex], [tex]3[/tex], [tex]7[/tex], [tex]9[/tex], [tex]13[/tex] and [tex]15[/tex] years old. What is the smallest number of years after which the age of each of them will be a prime number?
Problem 4
What is the largest two-digit divisor of the number [tex]3^{2016}+3^{2017}+3^{2019}[/tex]?
Problem 5
Peter tore several consecutive leaves out of a book. The number of the first torn-out page is [tex]387[/tex], and the number of the last torn-out page is written with the same digits in a different order. How many pages did Peter tear out?
Problem 6
An odd natural number leaves a remainder of [tex]99[/tex] when divided by [tex]2007[/tex]. What is its remainder when divided by [tex]18[/tex]?
Problem 7
What is the units digit of the smallest natural number whose digit sum is [tex]2015[/tex]?
Problem 8
The number [tex]A=2^{332}[/tex] has [tex]100[/tex] digits in its decimal representation. Prove that at least one digit occurs in the decimal representation of [tex]A[/tex] at least [tex]11[/tex] times.
Problem 9
Find all prime numbers that can be written both as a sum of two prime numbers and as a difference of two prime numbers.
Problem 10
Find the smallest natural number [tex]n[/tex] for which all the fractions [tex]\frac{19}{n+21}, \frac{20}{n+22}, \frac{21}{n+23}, \ldots, \frac{91}{n+93}[/tex] are irreducible.

Correct:
Wrong:
Unsolved problems:
Suggest a problem on this page

Feedback   Contact email:
Follow us on   X   Facebook

Copyright © 2005 - 2026.