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!)
A322864 Permutation of nonnegative integers: a(1) = 0; for n > 1, a(n) = A122111(A156552(n)). 3
0, 1, 2, 4, 3, 8, 5, 16, 6, 9, 7, 32, 11, 128, 12, 18, 13, 64, 17, 256, 15, 72, 19, 512, 10, 216, 24, 54, 23, 36, 29, 2048, 192, 36864, 20, 25, 31, 36028797018963968, 120, 144, 37, 4096, 41, 524288, 48, 3136, 43, 32768, 14, 27, 360, 4294967296, 47, 1024, 21, 1048576, 61440, 128000, 53, 16384, 59, 47852207848256971424537054170092404736, 384, 100, 320, 1152, 61 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Note the indexing: the domain starts from 1, but the range includes also zero.
LINKS
FORMULA
a(1) = 0; for n > 1, a(n) = A122111(A156552(n)).
For all n >= 1, a(prime(1+n)) = prime(n).
MATHEMATICA
Table[If[n < 3, n - 1, Block[{k = #, m = 0}, Times @@ Power @@@ Table[k -= m; k = DeleteCases[k, 0]; {Prime@ Length@ k, m = Min@ k}, Length@ Union@ k]] &@ Catenate[ConstantArray[PrimePi[#1], #2] & @@@ FactorInteger@ #] &@ Floor@ Total@ Flatten@ MapIndexed[#1 2^(#2 - 1) &, Flatten[Table[2^(PrimePi@ #1 - 1), {#2}] & @@@ FactorInteger@ n]]], {n, 67}] (* Michael De Vlieger, Dec 31 2018, after JungHwan Min at A122111 *)
PROG
(PARI)
A064989(n) = {my(f); f = factor(n); if((n>1 && f[1, 1]==2), f[1, 2] = 0); for (i=1, #f~, f[i, 1] = precprime(f[i, 1]-1)); factorback(f)};
A122111(n) = if(1==n, n, prime(bigomega(n))*A122111(A064989(n)));
A156552(n) = if(1==n, 0, if(!(n%2), 1+(2*A156552(n/2)), 2*A156552(A064989(n))));
A322864(n) = if(1==n, 0, A122111(A156552(n)));
CROSSREFS
Inverse permutation: A322863.
Sequence in context: A242706 A242722 A120242 * A355436 A352713 A054427
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 30 2018
STATUS
approved

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 April 19 23:15 EDT 2024. Contains 371798 sequences. (Running on oeis4.)