OFFSET
1,1
COMMENTS
Equivalently: numbers m such that the sum of digits (A007953) of the integers from 1 to A331786(m) is not divisible by m.
Numbers m such that the first run of A331786(m) consecutive numbers whose sum of digits (A007953) is not divisible by m begins at 1.
A331786(m) is the largest possible number of consecutive integers whose sum of digits is not divisible by m.
LINKS
Diophante, A389 - Les décaXphobes (in French).
EXAMPLE
For m = 10, the sum of digits of the integers from 1 up to A331786(10) = 18 is not divisible by 10; then for 19, sod(19) = 10 is divisible by 10, hence 10 is a term.
PROG
(PARI) a88(n) = my(t=gcd(n%9, 9)); if(t<9, 10^lift(Mod(-1, n/t)/(9/t)) - 10^(n\9)*(n%9-t+1) + 1, 1); \\ A352688
isok(m) = a88(m) == 1; \\ Michel Marcus, Apr 15 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Apr 14 2022
EXTENSIONS
More terms from Michel Marcus, Apr 15 2022
STATUS
approved