cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A245606 Permutation of natural numbers: a(1) = 1, a(2n) = 1 + A003961(a(n)), a(2n+1) = A003961(1+a(n)). [Where A003961(n) shifts the prime factorization of n one step left].

This page as a plain text file.
%I A245606 #22 Apr 01 2025 18:11:57
%S A245606 1,2,3,4,5,6,9,10,7,8,15,16,11,26,21,22,13,12,27,28,25,36,81,82,19,14,
%T A245606 45,52,125,56,39,40,29,18,33,46,17,126,99,100,31,50,51,226,41,626,129,
%U A245606 130,89,24,63,34,35,176,87,154,59,344,825,298,115,86,189,190,43,32,105,76,23,66,57,88,53,20
%N A245606 Permutation of natural numbers: a(1) = 1, a(2n) = 1 + A003961(a(n)), a(2n+1) = A003961(1+a(n)). [Where A003961(n) shifts the prime factorization of n one step left].
%C A245606 The even bisection halved gives A245608. The odd bisection incremented by one and halved gives A245708.
%H A245606 Antti Karttunen, <a href="/A245606/b245606.txt">Table of n, a(n) for n = 1..10001</a>
%H A245606 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>
%F A245606 a(1) = 1, a(2n) = A243501(a(n)), a(2n+1) = A003961(1+a(n)).
%F A245606 As a composition of related permutations:
%F A245606 a(n) = A064216(A245608(n)).
%o A245606 (PARI)
%o A245606 A003961(n) = my(f = factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); \\ This function from _Michel Marcus_
%o A245606 A245606(n) = if(1==n,1,if(0==(n%2),1+A003961(A245606(n/2)),A003961(1+A245606((n-1)/2))))
%o A245606 (Scheme)
%o A245606 ;; With memoization-macro definec.
%o A245606 (definec (A245606 n) (cond ((= 1 n) 1) ((even? n) (A243501 (A245606 (/ n 2)))) (else (A003961 (+ 1 (A245606 (/ (- n 1) 2)))))))
%Y A245606 Inverse: A245605.
%Y A245606 Cf. A003961, A243501, A064216, A245608, A245706, A245708.
%Y A245606 Similar entanglement permutations: A244319, A156552, A243071, A243288, A243344, A243346, A244322, A245604, A245614, A227413, A237126.
%K A245606 nonn
%O A245606 1,2
%A A245606 _Antti Karttunen_, Jul 29 2014