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.

A260422 a(1) = 1, a(2n) = A205783(1+a(n)), a(2n+1) = A206074(a(n)), where A206074 and A205783 give binary codes for polynomials with coefficients 0 or 1 that are irreducible [resp. reducible] over Q.

This page as a plain text file.
%I A260422 #20 Jul 27 2015 22:12:03
%S A260422 1,4,2,9,7,6,3,16,23,14,17,12,13,8,5,27,47,36,71,24,41,28,53,21,31,22,
%T A260422 37,15,19,10,11,42,81,70,149,54,109,106,239,38,73,62,127,44,83,80,171,
%U A260422 34,67,48,91,35,69,56,113,26,43,32,59,18,25,20,29,63,131,122,271,105,233,216,477,82,173,159,353,155,347,345,787,57
%N A260422 a(1) = 1, a(2n) = A205783(1+a(n)), a(2n+1) = A206074(a(n)), where A206074 and A205783 give binary codes for polynomials with coefficients 0 or 1 that are irreducible [resp. reducible] over Q.
%C A260422 This sequence can be represented as a binary tree. Each left hand child is produced as A205783(1+n), and each right hand child as A206074(n), when the parent contains n:
%C A260422                                      |
%C A260422                   ...................1...................
%C A260422                  4                                       2
%C A260422        9......../ \........7                   6......../ \........3
%C A260422       / \                 / \                 / \                 / \
%C A260422      /   \               /   \               /   \               /   \
%C A260422     /     \             /     \             /     \             /     \
%C A260422   16       23         14       17         12       13          8       5
%C A260422 27  47   36  71     24  41   28  53     21  31   22  37      15 19   10 11
%C A260422 etc.
%H A260422 Antti Karttunen, <a href="/A260422/b260422.txt">Table of n, a(n) for n = 1..8192</a>
%H A260422 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>
%F A260422 a(1) = 1, a(2n) = A205783(1+a(n)), a(2n+1) = A206074(a(n)).
%F A260422 As a composition of related permutations:
%F A260422 a(n) = A260423(A246378(n)).
%F A260422 a(n) = A260425(A246202(n)).
%o A260422 (PARI)
%o A260422 uplim = (2^21) + (2^20);
%o A260422 v206074 = vector(uplim);
%o A260422 v205783 = vector(uplim); v205783[1] = 1;
%o A260422 isA206074(n) = polisirreducible(Pol(binary(n)));
%o A260422 i=0; j=1; n=2; while((n < uplim), if(!(n%65536),print1(n,", "));  if(isA206074(n), i++; v206074[i] = n, j++; v205783[j] = n); n++); print(n);
%o A260422 A260422(n) = if(1==n, 1, if(0==(n%2), v205783[1+A260422(n/2)], v206074[A260422((n-1)/2)]));
%o A260422 for(n=1, 8192, write("b260422.txt", n, " ", A260422(n)));
%Y A260422 Inverse: A260421.
%Y A260422 Related permutations: A246202, A246378, A260423, A260425.
%Y A260422 Cf. A205783, A206074.
%Y A260422 Differs from A246378 for the first time at n=16, where a(16)=27, while A246378(16)=26.
%K A260422 nonn,tabf
%O A260422 1,2
%A A260422 _Antti Karttunen_, Jul 25 2015