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.

A245707 Permutation of natural numbers, the odd bisection of A245605 incremented by one and halved: a(n) = (1+A245605((2*n)-1))/2.

This page as a plain text file.
%I A245707 #13 Apr 01 2025 17:59:35
%S A245707 1,2,3,5,4,7,9,6,19,13,8,35,11,10,17,21,18,27,139,16,23,33,14,555,51,
%T A245707 22,37,75,36,29,105,26,67,147,278,71,165,38,53,587,12,107,83,28,25,
%U A245707 2219,72,43,73,20,87,41,34,291,277,210,163,31,66,149,131,330,15,229,24,39,2347,70,49,101
%N A245707 Permutation of natural numbers, the odd bisection of A245605 incremented by one and halved: a(n) = (1+A245605((2*n)-1))/2.
%H A245707 Antti Karttunen, <a href="/A245707/b245707.txt">Table of n, a(n) for n = 1..10001</a>
%H A245707 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>
%F A245707 a(n) = (1+A245605((2*n)-1))/2.
%F A245707 As a composition of related permutations:
%F A245707 a(1) = 1, and for n > 1, a(n) = 1+A245605(A064216(n)-1).
%F A245707 a(n) = A245706(A245607(n)).
%o A245707 (PARI)
%o A245707 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);
%o A245707 A245605(n) = if(1==n, 1, if(0==(n%2), 2*A245605(A064989(n-1)), 1+(2*A245605(A064989(n)-1))));
%o A245707 A245707(n) = (1+A245605((2*n)-1))/2;
%o A245707 (Scheme)
%o A245707 (define (A245707 n) (* (/ 1 2) (+ 1 (A245605 (-1+ (* 2 n))))))
%o A245707 (Scheme)
%o A245707 (define (A245707 n) (if (= 1 n) n (+ 1 (A245605 (-1+ (A064216 n))))))
%Y A245707 Inverse: A245708.
%Y A245707 Cf. A064216, A064989, A245605, A245607, A245706.
%K A245707 nonn
%O A245707 1,2
%A A245707 _Antti Karttunen_, Jul 30 2014