A029515 Numbers k such that k divides the (right) concatenation of all numbers <= k written in base 22 (most significant digit on right).
1, 2, 3, 6, 7, 9, 11, 14, 18, 21, 35, 75, 97, 102, 105, 175, 196, 291, 343, 375, 455, 485, 1176, 2070, 2151, 3375, 4968, 11375, 17059, 21826, 22326, 28856, 30079, 41265, 47285, 49605, 49966, 67648, 92806, 115074, 143493, 179654, 963874, 1525498, 1527890
Offset: 1
Examples
See A029495 for example.
Links
Crossrefs
Programs
-
Mathematica
b = 22; c = {}; Select[Range[10^4], Divisible[FromDigits[c = Join[c, Reverse[IntegerDigits[#, b]]], b], #] &] (* Robert Price, Mar 13 2020 *)
-
PARI
lista(nn, m=22) = my(s, t); for(k=1, nn, s=k; while(s, t=t*m+s%m; s\=m); if(t%k==0, print1(k, ", "))); \\ Jinyuan Wang, Dec 05 2020
Extensions
More terms from Larry Reeves (larryr(AT)acm.org), Jun 01 2001
Edited and updated by Larry Reeves (larryr(AT)acm.org), Apr 12 2002
Comments