login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A322592 Lexicographically earliest such sequence a that for all i, j, a(i) = a(j) => f(i) = f(j), where f(n) = 0 for odd primes, and f(n) = A289625(n) for any other number. 8

%I

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

%T 15,16,17,8,2,13,17,18,2,8,2,15,17,19,2,18,20,11,21,17,2,13,22,23,24,

%U 25,2,18,2,26,27,21,28,15,2,21,29,17,2,23,2,30,22,24,31,17,2,32,33,34,2,23,35,20,36,37,2,17,38,29,31,39,40,41,2,20,31,22,2,21,2,42,42

%N Lexicographically earliest such sequence a that for all i, j, a(i) = a(j) => f(i) = f(j), where f(n) = 0 for odd primes, and f(n) = A289625(n) for any other number.

%C For all i, j:

%C a(i) = a(j) => A034380(i) = A034380(j),

%C a(i) = a(j) => A104194(i) = A104194(j),

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

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

%o (PARI)

%o default(parisizemax,2^31);

%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 A289625(n) = { my(m=1,p=2,v=znstar(n)[2]); for(i=1,length(v),m *= p^v[i]; p = nextprime(p+1)); (m); };

%o Aux322592(n) = if((n>2)&&isprime(n),0,A289625(n));

%o v322592 = rgs_transform(vector(up_to, n, Aux322592(n)));

%o A322592(n) = v322592[n];

%o for(n=1,up_to,write("b322592.txt", n, " ", A322592(n)));

%Y Cf. A289625, A289626, A322587, A322588, A322589, A322591.

%K nonn

%O 1,3

%A _Antti Karttunen_, Dec 18 2018

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 29 16:43 EDT 2020. Contains 334704 sequences. (Running on oeis4.)