MathDB
Glueing digits of 1,2,...n to obtain multiples of k

Source: MEMO 2024 T7

August 27, 2024
number theorynumber theory proposedDigits

Problem Statement

Define glueing of positive integers as writing their base ten representations one after another and interpreting the result as the base ten representation of a single positive integer. Find all positive integers kk for which there exists an integer NkN_k with the following property: for all nNkn \ge N_k, we can glue the numbers 1,2,,n1,2,\dots,n in some order so that the result is a number divisible by kk. Remark. The base ten representation of a positive integer never starts with zero. Example. Glueing 15,14,715, 14, 7 in this order makes 1514715147.