A333687 a(n) is the minimal value of k >= 0, such that the concatenation of the decimal digits of n,n+1,...,n+k is divisible by the digit sum of the concatenation, or -1 if no such k is known.
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 1, 2, 42, 4, 3, 0, 1, 0, 0, 1, 17, 0, 131, 26, 0, 16, 11, 0, 1, 2, 37, 1, 1, 0, 1, 2, 21, 0, 3, 0, 7, 8, 0, 6, 83, 0, 1, 0, 89, 8, 26, 0, 97, 142783940, 3, 1, 1, 0, 4, 8, 0, 14, 37, 49994, 380, 20, 17, 0, 65, 0, 62, 1, 3, -1, 29, 46, 235, 0, 0, 18, 29, 0, 1, 53
Offset: 1
Examples
a(1) = 0 as 1 is divisible by its digit sum 1 so no concatenation of additional numbers is required. This is also true for n = 2 to 10. a(11) = 2 as 11 requires the concatenation of two more numbers, 12 and 13, to form 111213, which is divisible by its digit sum 9. a(12) = 0 as 12 is divisible by its digit sum 3. a(16) = 4 as 16 requires the concatenation of four more numbers, 17,18,19 and 20, to form 1617181920, which is divisible by its digit sum 36.
Links
- Scott R. Shannon, Table of n, a(n) for n = 1..1000
Comments