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.

Showing 1-5 of 5 results.

A206074 n-th irreducible polynomial over Q (with coefficients 0 or 1) evaluated at x=2.

Original entry on oeis.org

2, 3, 5, 7, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41, 43, 47, 53, 55, 59, 61, 67, 69, 71, 73, 77, 79, 81, 83, 87, 89, 91, 97, 101, 103, 107, 109, 113, 115, 117, 121, 127, 131, 137, 139, 143, 145, 149, 151, 157, 163, 167, 169, 171, 173, 179, 181, 185, 191, 193, 197, 199, 203, 205, 209, 211, 213, 223, 227, 229
Offset: 1

Views

Author

Clark Kimberling, Feb 03 2012

Keywords

Comments

Is every prime present?
Yes, see the Filaseta reference. - Thomas Ordowski, Feb 19 2014
Corresponding evaluation at x=10 is A206073. - Michael Somos, Feb 26 2014

Examples

			(See the example at A206073.)
		

Crossrefs

Cf. A206073, A205783 (complement), A206075 (nonprime terms), A014580 (irreducible over GF(2), a subsequence of this one), A000040 (primes, also a subsequence), A260427 (terms that are reducible over GF(2)).
Cf. A255574 (left inverse).
Cf. also permutations A260421 - A260426.
Disjoint union of A257688 (without 1) and A260428.
a(n) differs from A186891(n+1) for the first time at n=21, where a(21) = 67, while A186891(22) = 65, a term missing from here. There are several other sequences that do not diverge until after approx. the twentieth term from this one (see the context-links).

Programs

  • Mathematica
    t = Table[IntegerDigits[n, 2], {n, 1, 850}];
    b[n_] := Reverse[Table[x^k, {k, 0, n}]]
    p[n_, x_] := t[[n]].b[-1 + Length[t[[n]]]]
    Table[p[n, x], {n, 1, 15}]
    u = {}; Do[n++; If[IrreduciblePolynomialQ[p[n, x]],
    AppendTo[u, n]], {n, 300}];
    u                          (* A206074 *)
    Complement[Range[200], u]  (* A205783 *)
    b[n_] := FromDigits[IntegerDigits[u, 2][[n]]]
    Table[b[n], {n, 1, 40}]    (* A206073 *)
  • PARI
    for(n=2, 10^3, if( polisirreducible( Pol(binary(n)) ), print1(n,", ") ) ); \\ Joerg Arndt, Feb 19 2014

Formula

Other identities and observations. For all n >= 1:
A255574(a(n)) = n.

Extensions

Clarified name, added more terms, Joerg Arndt, Feb 20 2014

A205783 Complement of A206074, a coding of reducible polynomials over Q (with coefficients 0 or 1).

Original entry on oeis.org

1, 4, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 22, 24, 26, 27, 28, 30, 32, 33, 34, 35, 36, 38, 39, 40, 42, 44, 45, 46, 48, 49, 50, 51, 52, 54, 56, 57, 58, 60, 62, 63, 64, 65, 66, 68, 70, 72, 74, 75, 76, 78, 80, 82, 84, 85, 86, 88, 90, 92, 93, 94, 95, 96, 98, 99, 100
Offset: 1

Views

Author

Clark Kimberling, Feb 03 2012

Keywords

Comments

Reducibility here refers to the field of rational numbers.
Except for its initial 3, is A039004 a subsequence of A205783?

Examples

			The reducible polynomials matching the first four terms:
1 = 1(base 2) matches 1
4 = 100(base 2) matches x^2
6 = 110(base 2) matches x^2 + x
8 = 1000(base 2) matches x^3
9 = 1001(base 2) matches x^3 + 1
		

Crossrefs

Cf. A206074 (complement), A255573 (left inverse).
After 1 a subsequence of A091212 (69 is the first term missing from here).
Cf. also permutations A260421 - A260426.

Programs

  • Mathematica
    t = Table[IntegerDigits[n, 2], {n, 1, 850}];
    b[n_] := Reverse[Table[x^k, {k, 0, n}]]
    p[n_, x_] := t[[n]].b[-1 + Length[t[[n]]]]
    Table[p[n, x], {n, 1, 15}]
    u = {}; Do[n++; If[IrreduciblePolynomialQ[p[n, x]],
    AppendTo[u, n]], {n, 300}];
    u                          (* A206074 *)
    Complement[Range[200], u]  (* A205783 *)
    b[n_] := FromDigits[IntegerDigits[u, 2][[n]]]
    Table[b[n], {n, 1, 40}]    (* A206073 *)
  • PARI
    isA205783(n) = ((n > 0) && !polisirreducible(Pol(binary(n))));
    n = 0; i = 0; while(n < 32768, n++; if(isA205783(n), i++; write("b205783.txt", i, " ", n)));
    \\ Antti Karttunen, Jul 28 2015 after Joerg Arndt's code for A206074.

Formula

Other identities and observations. For all n >= 1:
A255573(a(n)) = n.

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

Original entry on oeis.org

1, 2, 3, 4, 7, 5, 11, 6, 8, 12, 25, 9, 13, 17, 10, 14, 47, 18, 19, 34, 15, 20, 31, 24, 55, 16, 21, 62, 137, 26, 37, 27, 45, 22, 28, 42, 59, 33, 71, 23, 87, 29, 41, 79, 166, 35, 61, 49, 36, 58, 30, 38, 319, 54, 91, 76, 44, 89, 97, 32, 203, 108, 39, 53, 99, 200, 67, 46, 103, 78, 185, 64, 131, 48, 75, 40, 379, 50, 73, 373, 109, 70, 433, 113, 95, 57, 1123, 111, 143, 121
Offset: 1

Views

Author

Antti Karttunen, Jul 26 2015

Keywords

Comments

Each term of A260427 resides in a separate infinite cycle. This follows because any polynomial with (coefficients 0 or 1) that is irreducible over GF(2) is also irreducible over Q, in other words, A014580 is a subset of A206074. [See Thomas Ordowski's Feb 21 2014 comment in A014580] and thus any term of A091242 in A206074 is trapped into a trajectory containing only terms of A014580.

Crossrefs

Inverse: A260425.
Related permutations: A246202, A245703, A260421, A260424.
Differs from A245703 for the first time at n=25, where a(25)=55, while A245703(25)=16.

Programs

Formula

a(1) = 1; for n > 1, if A257000(n) = 1 [when n is in A206074], then a(n) = A014580(a(A255574(n))), otherwise [when n is in A205783], a(n) = A091242(a(A255572(n))).
As a composition of related permutations:
a(n) = A246202(A260421(n)).
a(n) = A245703(A260424(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.

Original entry on oeis.org

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, 37, 15, 19, 10, 11, 42, 81, 70, 149, 54, 109, 106, 239, 38, 73, 62, 127, 44, 83, 80, 171, 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
Offset: 1

Views

Author

Antti Karttunen, Jul 25 2015

Keywords

Comments

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:
|
...................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 37 15 19 10 11
etc.

Crossrefs

Inverse: A260421.
Related permutations: A246202, A246378, A260423, A260425.
Differs from A246378 for the first time at n=16, where a(16)=27, while A246378(16)=26.

Programs

  • PARI
    uplim = (2^21) + (2^20);
    v206074 = vector(uplim);
    v205783 = vector(uplim); v205783[1] = 1;
    isA206074(n) = polisirreducible(Pol(binary(n)));
    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);
    A260422(n) = if(1==n, 1, if(0==(n%2), v205783[1+A260422(n/2)], v206074[A260422((n-1)/2)]));
    for(n=1, 8192, write("b260422.txt", n, " ", A260422(n)));

Formula

a(1) = 1, a(2n) = A205783(1+a(n)), a(2n+1) = A206074(a(n)).
As a composition of related permutations:
a(n) = A260423(A246378(n)).
a(n) = A260425(A246202(n)).

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

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 29, 25, 26, 27, 31, 28, 37, 30, 32, 33, 34, 35, 41, 36, 44, 38, 43, 39, 47, 40, 46, 42, 53, 54, 45, 48, 49, 50, 59, 51, 61, 58, 52, 63, 67, 55, 71, 62, 56, 66, 57, 65, 73, 60, 79, 75, 83, 76, 89, 64, 68, 69, 109, 70, 97, 82, 101, 72, 103, 85, 81, 74, 127
Offset: 1

Views

Author

Antti Karttunen, Jul 25 2015

Keywords

Comments

After 1, each term of A206075 resides in a separate infinite cycle. This follows because primes (A000040) is a subsequence of A206074 [see Thomas Ordowski's Feb 19 2014 comment in A206074] and thus each composite in A206074 is trapped into a trajectory containing only primes.

Crossrefs

Programs

  • PARI
    allocatemem(123456789);
    default(primelimit,4294965247);
    uplim = 2^20;
    v255574 = vector(uplim); A255574 = n -> v255574[n];
    A255572 = n -> (n - A255574(n) - 1);
    A257000(n) = polisirreducible(Pol(binary(n)));
    v255574[1] = 0; i=0; j=0; n=2; while((n < uplim), v255574[n] = v255574[n-1]+A257000(n); n++);
    A002808(n)={ my(k=-1); while( -n + n += -k + k=primepi(n), ); n}; \\ This function from M. F. Hasler
    A260424(n) = if(1==n, 1, if(A257000(n), prime(A260424(A255574(n))), A002808(A260424(A255572(n)))));
    for(n=1, 8192, write("b260424.txt", n, " ", A260424(n)));

Formula

a(1) = 1; for n > 1, if A257000(n) = 1 [when n is in A206074], then a(n) = A000040(a(A255574(n))), otherwise [when n is in A205783], a(n) = A002808(a(A255572(n))).
As a composition of related permutations:
a(n) = A246378(A260421(n)).
a(n) = A245704(A260426(n)).
Showing 1-5 of 5 results.