login
A352689
a(n) is the last term of the first run of A331786(n) consecutive numbers whose sum of digits (A007953) is not divisible by n.
2
10, 2, 1002, 13, 14, 1005, 10000006, 8, 18, 1000018, 38, 10000000038, 1048, 1058, 10000068, 1000000000000078, 98, 198, 100000000198, 398, 100000000000000398, 100498, 100598, 100000000698, 100000000000000000000798, 998, 1998, 10000000000001998, 3998, 1000000000000000000003998
OFFSET
2,1
COMMENTS
A331786(n) is the number of consecutive integers in the largest such possible run.
FORMULA
a(n) = A352688(n) + A331786(n) - 1.
EXAMPLE
a(4) = 1002 because the A331786(4) = 6 consecutive numbers 997, 998, 999, 1000, 1001, 1002 have respectively sum of digits = 25, 26, 27, 1, 2, 3 and none is divisible by 4, and there is no smaller m < 1002 such that sum of digits of m-5, m-4, m-3, m2, m-1, m is not divisible by 4.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Mar 28 2022
EXTENSIONS
More terms from Jinyuan Wang, Mar 28 2022
STATUS
approved