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-3 of 3 results.

A264292 Number of irreducible polynomials in the polynomial tree T generated as in Comments.

Original entry on oeis.org

0, 0, 1, 2, 4, 7, 15, 26, 55, 101, 221, 413, 870, 1673, 3490
Offset: 0

Views

Author

Clark Kimberling, Nov 24 2015

Keywords

Comments

The tree T is generated by these rules: 0 is in T, and if p is in T, then p + 1 is in T and x*p is in T. Every polynomial with nonnegative integer coefficients is in T, and the n-th generation of T consists of 2^(n-1) polynomials, for n >= 1.

Examples

			First few generations:
g(0) = {0}
g(1) = {1}
g(2) = {2,x}
g(3) = {3, 2x, x+1, x^2}
g(4) = {4, 3x, 2x+1, 2x^2, x+2, x^2+x, x^2+1, x^3}
a(4) counts these 4 irreducible polynomials: 3x, 2x+1, x+2, x^2+1.
		

Crossrefs

Programs

  • Mathematica
    z = 15; t = Expand[NestList[DeleteDuplicates[Flatten[Map[{# + 1, x*#} &, #], 1]] &, {0}, z]];
    s[0] = t[[1]]; s[n_] := s[n] = Union[t[[n]], s[n - 1]]
    g[n_] := Complement[s[n], s[n - 1]]
    Column[Table[g[z], {z, 1, 7}]]
    Table[Count[Map[IrreduciblePolynomialQ, g[n]], True], {n, 1, z}]

A261967 {2,3,5}-primes. (See comments.)

Original entry on oeis.org

2, 151, 3061, 9517861, 11903341, 15344551, 15460771, 19975771, 37935091, 42234271, 52312411, 199938421, 228523501, 237049321, 270798991, 315266641, 315522931, 327445201, 354600601, 423223741, 466801171, 498309631, 499063711, 547916791, 585381361, 621504721
Offset: 1

Views

Author

Clark Kimberling, Nov 09 2015

Keywords

Comments

Let S = {b(1), b(2), ..., b(k)}, where k > 1 and b(i) are distinct integers > 1 for i = 1..k. Call p an S-prime if the digits of p in base b(i) spell a prime in each of the bases b(j) in S, for i = 1..k and j = 1..k. Equivalently, p is an S-prime if p is a strong-V prime (defined at A262729) for every permutation of the vector V = (b(1), b(2), ..., b(k)). Note that strong (2,3,5)-primes (A262727) form a proper subset of {2,3,5}-primes. It may be of interest to consider the sets of {2,3,5,7}-primes, {2,3,5,7,11}-primes, etc. Is every such set infinite?

Crossrefs

Programs

  • Mathematica
    {b1, b2, b3} = {2, 3, 5}; z = 10000000;
    Select[Prime[Range[z]],
    PrimeQ[FromDigits[IntegerDigits[#, b1], b2]] &&
    PrimeQ[FromDigits[IntegerDigits[#, b1], b3]] &&
    PrimeQ[FromDigits[IntegerDigits[#, b2], b1]] &&
    PrimeQ[FromDigits[IntegerDigits[#, b2], b3]] &&
    PrimeQ[FromDigits[IntegerDigits[#, b3], b1]] &&
    PrimeQ[FromDigits[IntegerDigits[#, b3], b2]] &]
    (* Peter J. C. Moses, Sep 27 2015 *)

A264293 Number of irreducible polynomials in the n-th generation of polynomials generated as in Comments.

Original entry on oeis.org

0, 0, 2, 4, 9, 20, 54, 131, 354, 912, 2457, 6429, 17081, 44850, 118578, 311471
Offset: 0

Views

Author

Clark Kimberling, Nov 24 2015

Keywords

Comments

The set of polynomials T is generated by these rules: 0 is in T, and if p is in T, then p + 1 is in T and x*p is in T and y*p is in T. The n-th generation of T consists of F(2n) polynomials, for n >= 0, where F = A000045 = Fibonacci numbers.
Note that a given polynomial can appear only once; e.g., though x*y can arise either from multiplying x by y or y by x, it occurs only once in generation 3. Also although 0*x = 0, 0 occurs only in generation 0. - Robert Israel, Nov 22 2018

Examples

			First few generations:
g(0) = {0}
g(1) = {1}
g(2) = {2,x,y}
g(3) = {3, 2x, x^2, 1+x, 2y, xy, y^2, 1+y}
The irreducible polynomials in g(3) are 2x, 1+x, 2y, 1+y, so that a(3) = 4.
		

Crossrefs

Programs

  • Maple
    A[0]:= 0: A[1]:= 0:
    T:= {1}:
    for n from 2 to 13 do
      T:= map(t -> (t+1,expand(x*t),expand(y*t)),T);
      A[n]:= nops(select(irreduc,T));
    od:
    seq(A[i],i=0..13); # Robert Israel, Nov 22 2018
  • Mathematica
    z = 12; t = Expand[NestList[DeleteDuplicates[Flatten[Map[{# + 1, x*#, y*#} &, #], 1]] &, {0}, z]];
    s[0] = t[[1]]; s[n_] := s[n] = Union[t[[n]], s[n - 1]]
    g[n_] := Complement[s[n], s[n - 1]]
    Table[Length[g[z]], {z, 1, z}]
    Column[Table[g[z], {z, 1, 6}]]
    Table[Count[Map[IrreduciblePolynomialQ, g[n]], True], {n, 1, z}]

Extensions

Edited, and a(12)-a(15) from Robert Israel, Nov 22 2018
Showing 1-3 of 3 results.