login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A319355 Filter sequence constructed from the lengths of arithmetic progressions occurring among the divisors of n. 2

%I #7 Sep 23 2018 20:59:39

%S 1,2,2,3,2,4,2,5,3,5,2,6,2,5,4,7,2,8,2,9,5,5,2,10,3,5,5,11,2,12,2,9,5,

%T 5,5,13,2,5,5,14,2,15,2,9,16,5,2,17,3,9,5,9,2,18,5,15,5,5,2,19,2,5,9,

%U 20,5,18,2,9,5,21,2,22,2,5,8,9,5,15,2,23,7,5,2,24,5,5,5,21,2,25,4,9,5,5,5,26,2,9,9,27,2,15,2,21,28

%N Filter sequence constructed from the lengths of arithmetic progressions occurring among the divisors of n.

%C Restricted growth sequence transform of A319354.

%C For all i, j:

%C a(i) = a(j) => A067131(i) = A067131(j).

%C a(i) = a(j) => A160752(i) = A160752(j).

%C a(i) = a(j) => A091009(i) = A091009(j).

%H Antti Karttunen, <a href="/A319355/b319355.txt">Table of n, a(n) for n = 1..65537</a>

%o (PARI)

%o up_to = 65537;

%o rgs_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(om,invec[i]), my(pp = mapget(om, invec[i])); outvec[i] = outvec[pp] , mapput(om,invec[i],i); outvec[i] = u; u++ )); outvec; };

%o A319354(n) = if(1==n,2,my(d=divisors(n),m=1); for(i=1,(#d-1), for(j=(i+1),#d,my(c=1,k=d[j],s=(d[j]-d[i])); while(!(n%k), k+=s; c++); m *= prime(c))); (m));

%o v319355 = rgs_transform(vector(up_to,n,A319354(n)));

%o A319355(n) = v319355[n];

%Y Cf. A319354.

%K nonn

%O 1,2

%A _Antti Karttunen_, Sep 21 2018

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 27 16:23 EDT 2024. Contains 375470 sequences. (Running on oeis4.)