login
Numbers k such that k divides the concatenation all divisors in ascending order, i.e., k divides A037278(k).
13

%I #31 Feb 18 2024 08:19:52

%S 1,2,4,5,6,8,10,15,16,20,24,25,30,32,40,50,60,64,80,90,96,100,104,120,

%T 124,125,128,150,160,200,240,250,255,256,288,320,360,375,380,384,400,

%U 425,464,480,495,500,512,600,618,625,640,750,795,800,864,875,960,1000

%N Numbers k such that k divides the concatenation all divisors in ascending order, i.e., k divides A037278(k).

%C All the powers of 2 are terms.

%H Giovanni Resta, <a href="/A069872/b069872.txt">Table of n, a(n) for n = 1..1547</a> (terms <= 10^10, first 500 terms from Harvey P. Dale)

%e 16 is a term as 16 divides 124816, 24 is a term as 24 divides 1234681224.

%t Select[Range[1000],Divisible[FromDigits[Flatten[IntegerDigits/@ Divisors[ #]]],#]&] (* _Harvey P. Dale_, Dec 31 2012 *)

%o (PARI) f(n) = my(d=divisors(n), s=""); fordiv(n, d, s = concat(s, Str(d))); eval(s); \\ A037278

%o isok(n) = f(n) % n == 0; \\ _Michel Marcus_, Jun 01 2019

%o (Magma) k:=1; sol:=[];

%o for u in [1..1000] do D:=Divisors(u); conc:=D[1];

%o for u1 in [2..#D] do a:=#Intseq(conc); a1:=#Intseq(D[u1]);conc:=10^a1*conc+D[u1];end for;

%o if conc mod u eq 0 then sol[k]:=u; k:=k+1; end if;

%o end for;

%o sol; // _Marius A. Burtea_, Jun 01 2019

%Y Cf. A037278, A224930.

%K base,nonn

%O 1,2

%A _Amarnath Murthy_, Apr 24 2002

%E More terms from Antonio G. Astudillo (afg_astudillo(AT)lycos.com), Apr 21 2003