A029522 Numbers k such that k divides the (left) concatenation of all numbers <= k written in base 5 (most significant digit on right and removing all least significant zeros before concatenation).
1, 8, 16, 19, 1208, 3187, 5352, 30984, 80976, 126944, 670251, 5306279, 7640616
Offset: 1
Examples
See A029519 for example.
Crossrefs
Programs
-
Mathematica
b = 5; c = {}; Select[Range[10^4], Divisible[FromDigits[c = Join[IntegerDigits[IntegerReverse[#, b], b], c], b], #] &] (* Robert Price, Mar 13 2020 *)
Extensions
Edited and updated by Larry Reeves (larryr(AT)acm.org), Apr 12 2002
Additional comments and more terms from Larry Reeves (larryr(AT)acm.org), May 25 2001
a(11)-a(13) from Lars Blomberg, Sep 04 2011
Comments