A029536 Numbers n such that n divides the (left) concatenation of all numbers <= n written in base 19 (most significant digit on right and removing all least significant zeros before concatenation).
1, 3, 9, 21, 28, 36, 48, 87, 100, 156, 189, 208, 300, 547, 999, 1155, 1395, 1524, 3267, 6867, 7663, 8880, 9295, 30021, 38740, 49861, 86427, 379248, 454269, 657860, 850824, 1589897, 3523500, 8855295
Offset: 1
Examples
See A029519 for example.
Crossrefs
Programs
-
Mathematica
b = 19; c = {}; Select[Range[10^4], Divisible[FromDigits[c = Join[IntegerDigits[IntegerReverse[#, b], b], c], b], #] &] (* Robert Price, Mar 13 2020 *)
-
PARI
lista(nn, m=19) = my(c, s, t); for(k=1, nn, t+=m^c*s=fromdigits(Vecrev(digits(k, m)), m); c+=logint(s, m)+1; if(t%k==0, print1(k, ", "))); \\ Jinyuan Wang, Dec 05 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(29)-a(34) from Lars Blomberg, Sep 23 2011
Comments