OFFSET
1,6
COMMENTS
LINKS
Hugo van der Sanden, Perl program (GitHub).
EXAMPLE
a(5)=0 because if we append zero to any positive integer the result will be a multiple of 5.
a(6)=2 because if we append 2 up to three times to any positive integer the result will be a multiple of 6.
a(7)=100000 since A051626(7)=6: for any value less than this there are some k that never give a multiple of 7. For example, appending 1 fails for k=3 since 3, 31, 311, ... are all equivalent to 3 (mod 7). However since 10^6 k + 100000 == k + 5 (mod 7), appending 100000 means that every k will cycle through possible values (mod 7) until reaching a number that is divisible by 7.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Ali Sada and Hugo van der Sanden, Jan 28 2026
STATUS
approved
