login
A245607
Permutation of natural numbers, the even bisection of A245605 halved: a(n) = A245605(2*n)/2.
13
1, 2, 3, 5, 4, 9, 13, 6, 17, 37, 8, 25, 7, 10, 69, 33, 26, 11, 41, 16, 277, 45, 18, 65, 21, 14, 1109, 15, 52, 73, 57, 74, 35, 209, 82, 293, 141, 34, 53, 329, 12, 1173, 31, 36, 213, 149, 104, 43, 49, 20, 145, 173, 138, 81, 581, 114, 553, 71, 90, 133, 101, 282, 19, 325, 24, 457, 165, 50, 77, 97, 62, 105, 555, 42
OFFSET
1,2
FORMULA
a(n) = A245605(2*n)/2.
As a composition of related permutations:
a(n) = A245605(A064216(n)).
a(n) = A245705(A245707(n)).
PROG
(PARI)
A064989(n) = my(f = factor(n)); for(i=1, #f~, if((2 == f[i, 1]), f[i, 1] = 1, f[i, 1] = precprime(f[i, 1]-1))); factorback(f);
A245605(n) = if(1==n, 1, if(0==(n%2), 2*A245605(A064989(n-1)), 1+(2*A245605(A064989(n)-1))));
A245607(n) = A245605(2*n)/2;
for(n=1, 10001, write("b245607.txt", n, " ", A245607(n)));
(Scheme) (define (A245607 n) (A245605 (A064216 n)))
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 29 2014
STATUS
approved