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.

A332805 a(n) = A000720(A332806(n)).

This page as a plain text file.
%I A332805 #8 Feb 27 2020 22:48:38
%S A332805 1,2,3,4,6,5,7,8,10,9,12,11,13,14,16,15,18,17,20,22,19,24,26,21,23,25,
%T A332805 28,30,27,29,32,34,31,36,33,38,35,40,42,37,44,39,46,41,43,48,50,52,54,
%U A332805 45,47,56,49,58,51,60,53,62,55,57,64,59,66,68,61,63,70,65,72,67,69,74,76,71,78,80,73,75,77,79,82,81,84,83,86,88,85
%N A332805 a(n) = A000720(A332806(n)).
%H A332805 Antti Karttunen, <a href="/A332805/b332805.txt">Table of n, a(n) for n = 1..50507</a>
%H A332805 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>
%F A332805 For all n >= 1, A108546(a(n)) = A000040(n).
%o A332805 (PARI)
%o A332805 up_to = 10000;
%o A332805 A332805list(up_to) = { my(v=vector(2), xs=Map(), lista=List([]), p,q); v[2] = 3; v[1] = 5; mapput(xs,1,1); mapput(xs,2,2); mapput(xs,3,3);  for(n=4,up_to, p = v[2-(n%2)]; q = nextprime(1+p); while(q%4 != p%4, q=nextprime(1+q)); v[2-(n%2)] = q; mapput(xs,primepi(q),n)); for(i=1, oo, if(!mapisdefined(xs, i, &u), return(Vec(lista)), listput(lista, u))); };
%o A332805 v332805 = A332805list(up_to);
%o A332805 A332805(n) = v332805[n];
%Y A332805 Cf. A000040, A108546, A332806, A332807 (inverse permutation).
%Y A332805 Fixed points are given by A000720(A108547(n)), n>=1.
%Y A332805 Cf. also A267100.
%K A332805 nonn
%O A332805 1,2
%A A332805 _Antti Karttunen_, Feb 27 2020