A061943 Numbers n such that n divides the (right) concatenation of all numbers <= n written in base 14 (most significant digit on right).
1, 2, 6, 7, 10, 13, 39, 45, 65, 131, 195, 1690, 2005, 2106, 3211, 11615, 18498, 20881, 22360, 36335, 104858, 234506, 665223, 1274944, 1328487, 1425268, 2305498
Offset: 1
Examples
See A061931 for example.
Crossrefs
Programs
-
Mathematica
b = 14; c = {}; Select[Range[10^4], Divisible[FromDigits[c = Join[c, IntegerDigits[IntegerReverse[#, b], b]], b], #] &] (* Robert Price, Mar 08 2020 *)
-
PARI
lista(nn, m=14) = my(s, t); for(k=1, nn, s=k/m^valuation(k, m); while(s, t=t*m+s%m; s\=m); 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
a(23)-a(27) from Lars Blomberg, Oct 22 2011
Comments