login
A029450
Numbers k that divide the (right) concatenation of all numbers <= k written in base 5 (most significant digit on left).
1
1, 5, 16, 23, 25, 35, 80, 125, 160, 205, 352, 625, 800, 1120, 1875, 2221, 3125, 6000, 9375, 10000, 11120, 15625, 19184, 21875, 30000, 50000, 55135, 58775, 66800, 71875, 78125, 88000, 88385, 171875, 200000, 390625, 472000, 715189, 734375, 1000000, 1953125, 2050000
OFFSET
1,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..83
MATHEMATICA
b = 5; c = {}; Select[Range[10^5], Divisible[FromDigits[c = Join[c, IntegerDigits[#, b]], b], #] &] (* Robert Price, Mar 10 2020 *)
PROG
(PARI) is(k, b=5) = my(c, s, t=1, u); while(t<=k, u=b*t-1; c=min(u, k)-t+1; s=s*Mod(u+1, k)^c+lift((t*u+1)*Mod(u+1, k*u^2)^c-u*(c+t)-1)/u^2; t=u+1); !s; \\ Jinyuan Wang, May 03 2025
(Python)
def ok(k): return concat_mod(5, k, k) == 0 # uses concat_mod by Jason Yuen in A029455
print([k for k in range(1, 10**5) if ok(k)]) # Michael S. Branicky, Apr 29 2026
KEYWORD
nonn,base
EXTENSIONS
More terms from David W. Wilson
a(40)-a(42) from Jinyuan Wang, May 03 2025
STATUS
approved