The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A332816 a(n) = A156552(A332808(n)). 5

%I #14 Mar 04 2020 18:08:31

%S 0,1,2,3,4,5,8,7,6,9,32,11,16,17,10,15,64,13,128,19,18,65,512,23,12,

%T 33,14,35,256,21,2048,31,66,129,20,27,1024,257,34,39,4096,37,8192,131,

%U 22,1025,32768,47,24,25,130,67,16384,29,68,71,258,513,131072,43,65536,4097,38,63,36,133,524288,259,1026,41,2097152,55,262144,2049,26,515

%N a(n) = A156552(A332808(n)).

%H Antti Karttunen, <a href="/A332816/b332816.txt">Table of n, a(n) for n = 1..10000</a>

%H <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>

%F a(n) = A156552(A332808(n)).

%F For n > 1, A070939(a(n)) = A332894(n).

%F For n >= 1: (Start)

%F A080791(a(n)) = A332899(n)-1.

%F Among many identities given in A156552 that apply here as well we have for example the following ones:

%F A000120(a(n)) = A001222(n).

%F A069010(a(n)) = A001221(n).

%F A106737(a(n)) = A000005(n).

%F (End)

%o (PARI)

%o up_to = 26927;

%o A156552(n) = {my(f = factor(n), p2 = 1, res = 0); for(i = 1, #f~, p = 1 << (primepi(f[i, 1]) - 1); res += (p * p2 * (2^(f[i, 2]) - 1)); p2 <<= f[i, 2]); res}; \\ From A156552

%o A332806list(up_to) = { my(v=vector(2), xs=Map(), lista=List([]), p,q,u); v[2] = 3; v[1] = 5; mapput(xs,1,1); mapput(xs,2,2); mapput(xs,3,3); for(n=4,up_to, p = v[2-(n%2)]; q = nextprime(1+p); while(q%4 != p%4, q=nextprime(1+q)); v[2-(n%2)] = q; mapput(xs,primepi(q),n)); for(i=1, oo, if(!mapisdefined(xs, i, &u), return(Vec(lista)), listput(lista, prime(u)))); };

%o v332806 = A332806list(up_to);

%o A332806(n) = v332806[n];

%o A332808(n) = { my(f=factor(n)); f[,1] = apply(A332806,apply(primepi,f[,1])); factorback(f); };

%o A332816(n) = A156552(A332808(n));

%Y Cf. A332815 (inverse permutation).

%Y Cf. A070939, A156552, A332808, A332894, A332899.

%K nonn

%O 1,3

%A _Antti Karttunen_, Feb 28 2020

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 June 10 06:18 EDT 2024. Contains 373253 sequences. (Running on oeis4.)