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

A186891 Numbers n such that the Stern polynomial B(n,x) is irreducible.

Original entry on oeis.org

1, 2, 3, 5, 7, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41, 43, 47, 53, 55, 59, 61, 65, 67, 71, 73, 77, 79, 83, 89, 91, 95, 97, 101, 103, 107, 109, 113, 115, 121, 125, 127, 131, 133, 137, 139, 143, 145, 149, 151, 157, 161, 163, 167, 169, 173, 175, 179, 181, 185, 191, 193, 197, 199
Offset: 1

Views

Author

T. D. Noe, Feb 28 2011

Keywords

Comments

Ulas and Ulas conjecture that all primes are here. The nonprime n are in A186892. See A186886 for the least number having n prime factors.

Crossrefs

Cf. A057526 (degree of Stern polynomials), A125184, A260443 (Stern polynomials).
Cf. A186892 (subsequence of nonprime terms).
Cf. A186893 (subsequence for self-reciprocal polynomials).
Positions of 0 and 1's in A277013, Positions of 1 and 2's in A284011.
Cf. A283991 (characteristic function for terms > 1).

Programs

  • Mathematica
    ps[n_] := ps[n] = If[n<2, n, If[OddQ[n], ps[Quotient[n, 2]] + ps[Quotient[n, 2] + 1], x ps[Quotient[n, 2]]]];
    selQ[n_] := IrreduciblePolynomialQ[ps[n]];
    Join[{1}, Select[Range[200], selQ]] (* Jean-François Alcover, Nov 02 2018, translated from PARI *)
  • PARI
    ps(n)=if(n<2, n, if(n%2, ps(n\2)+ps(n\2+1), 'x*ps(n\2)))
    is(n)=polisirreducible(ps(n)) \\ Charles R Greathouse IV, Apr 07 2015

Formula

From Antti Karttunen, Mar 21 2017: (Start)
A283992(a(1+n)) = n.
A260443(a(1+n)) = A277318(n).
(End)

A277013 a(n) = number of irreducible polynomial factors (counted with multiplicity) in the n-th Stern polynomial B(n,t).

Original entry on oeis.org

0, 1, 1, 2, 1, 2, 1, 3, 2, 2, 1, 3, 1, 2, 2, 4, 1, 3, 1, 3, 2, 2, 1, 4, 1, 2, 3, 3, 1, 3, 1, 5, 2, 2, 2, 4, 1, 2, 2, 4, 1, 3, 1, 3, 3, 2, 1, 5, 2, 2, 2, 3, 1, 4, 1, 4, 2, 2, 1, 4, 1, 2, 3, 6, 1, 3, 1, 3, 2, 3, 1, 5, 1, 2, 3, 3, 1, 3, 1, 5, 2, 2, 1, 4, 2, 2, 2, 4, 1, 4, 1, 3, 2, 2, 1, 6, 1, 3, 3, 3, 1, 3, 1, 4, 3, 2, 1, 5, 1, 2, 2, 5, 1, 3, 1, 3, 2, 2, 2, 5
Offset: 1

Views

Author

Antti Karttunen, Oct 07 2016

Keywords

Examples

			B(11,t) = t^2 + 3t + 1 which is irreducible, so a(11) = 1.
B(12,t) = t^3 + t^2 = t^2(t+1), so a(12) = 3.
		

Crossrefs

Cf. A186891 (positions of 0 and 1's in this sequence), A277027 (terms squared).
Differs from A001222 for the first time at n=25, where a(25)=1. A277190 gives the positions of differing terms.

Programs

Formula

a(n) = A277322(A260443(n)).
It seems that for all n >= 1, a(2^n) = n.
Showing 1-2 of 2 results.