login
A246363
Permutation of natural numbers: a(n) = A135141(A048673(n)).
7
1, 2, 4, 8, 3, 9, 5, 13, 10, 16, 6, 14, 7, 12, 35, 20, 17, 79, 11, 67, 71, 33, 19, 271, 39, 31, 139, 87, 15, 30, 18, 311, 47, 34, 63, 74, 23, 29, 26, 351, 21, 28, 27, 24, 303, 69, 25, 2431, 70, 223, 135, 319, 37, 1663, 65, 58, 41, 38, 32, 219, 43, 127, 367, 327, 287, 239, 55, 107, 46, 283, 22, 413, 51, 53, 147
OFFSET
1,2
COMMENTS
Apart from 2, even numbers occur only in positions given by A246261 (together with some odd numbers).
Also, apart from A246263(1) = 2, the positions given by the rest of A246263: 5, 6, 7, 8, 15, 17, 18, 19, 20, 21, ... contain odd numbers only.
FORMULA
a(n) = A135141(A048673(n)).
PROG
(PARI)
A003961(n) = my(f = factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); \\ Using code of Michel Marcus
A048673(n) = (A003961(n)+1)/2;
A135141(n) = if(1==n, 1, if(isprime(n), 2*A135141(primepi(n)), 1+(2*A135141(n-primepi(n)-1))));
for(n=1, 10000, write("b246363.txt", n, " ", A246363(n)));
(Scheme) (define (A246363 n) (A135141 (A048673 n)))
CROSSREFS
Inverse: A246364.
Related or similar permutations: A048673, A135141, A246365, A246367.
Sequence in context: A367750 A197382 A332521 * A319268 A277272 A109588
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 26 2014
STATUS
approved