A061945 Numbers n such that n divides the (right) concatenation of all numbers <= n written in base 16 (most significant digit on right, least significant zeros not written).
1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 25, 29, 53, 110, 177, 237, 255, 2260, 3214, 4313, 4563, 7595, 20220, 35139, 167134, 180319, 186885, 315850, 439975, 559740, 4393188, 8414132, 8434510
Offset: 1
Examples
See A061931 for example.
Crossrefs
Programs
-
Mathematica
b = 16; c = {}; Select[Range[10^4], Divisible[FromDigits[c = Join[c, IntegerDigits[IntegerReverse[#, b], b]], b], #] &] (* Robert Price, Mar 08 2020 *)
-
PARI
lista(nn, m=16) = 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; Aug 25 2002
a(32)-a(34) from Lars Blomberg, Oct 22 2011
Comments