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.

A245814 Permutation of natural numbers induced when A091204 is restricted to nonprime numbers: a(n) = 1+A091245(A091204(A018252(n))).

This page as a plain text file.
%I A245814 #9 Aug 18 2014 00:52:14
%S A245814 1,2,4,5,3,9,8,16,6,11,7,21,22,39,18,15,29,10,34,13,24,33,76,38,14,48,
%T A245814 42,44,46,81,20,19,37,54,32,92,60,23,63,71,25,99,28,233,30,50,98,70,
%U A245814 157,17,79,31,89,49,101,191,86,91,12,161,94,171,193,56,167,43,143,41,353,58,75,78,113,102,68,190,125,67,119,47,130,72,146,52,27
%N A245814 Permutation of natural numbers induced when A091204 is restricted to nonprime numbers: a(n) = 1+A091245(A091204(A018252(n))).
%H A245814 Antti Karttunen, <a href="/A245814/b245814.txt">Table of n, a(n) for n = 1..10001</a>
%H A245814 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>
%F A245814 a(n) = 1 + A091245(A091204(A018252(n))).
%F A245814 As a composition of related permutations:
%F A245814 a(n) = A245819(A245816(n)).
%o A245814 (PARI)
%o A245814 allocatemem(123456789);
%o A245814 v014580 = vector(2^18);
%o A245814 v091226 = vector(2^22);
%o A245814 isA014580(n)=polisirreducible(Pol(binary(n))*Mod(1, 2)); \\ This function from _Charles R Greathouse IV_
%o A245814 i=0; j=0; n=2; while((n < 2^22), if(isA014580(n), i++; v014580[i] = n; v091226[n] = v091226[n-1]+1, j++; v091226[n] = v091226[n-1]); n++);
%o A245814 A002808(n)={my(k); for(k=0, primepi(n), isprime(n++)&&k--); n}; \\ This function from _M. F. Hasler_
%o A245814 A018252(n) = if(1==n, 1, A002808(n-1));
%o A245814 A014580(n) = v014580[n];
%o A245814 A091226(n) = v091226[n];
%o A245814 A091245(n) = ((n-A091226(n))-1);
%o A245814 A091204(n) = if(n<=1, n, if(isprime(n), A014580(A091204(primepi(n))), {my(pfs, t, bits, i); pfs=factor(n); pfs[, 1]=apply(t->Pol(binary(A091204(t))), pfs[, 1]); sum(i=1, #bits=Vec(factorback(pfs))%2, bits[i]<<(#bits-i))}));
%o A245814 A245814(n) = 1 + A091245(A091204(A018252(n)))
%o A245814 for(n=1, 10001, write("b245814.txt", n, " ", A245814(n)));
%o A245814 (Scheme) (define (A245814 n) (+ 1 (A091245 (A091204 (A018252 n)))))
%Y A245814 Inverse: A245813.
%Y A245814 Related permutations: A091204, A245816, A245819.
%Y A245814 Cf. A018252, A091245.
%K A245814 nonn
%O A245814 1,2
%A A245814 _Antti Karttunen_, Aug 16 2014