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.

A121719 Strings of digits which are composite regardless of the base in which they are interpreted. Exclude bases in which numbers are not interpretable.

This page as a plain text file.
%I A121719 #23 Sep 14 2020 21:47:04
%S A121719 4,6,8,9,20,22,24,26,28,30,33,36,39,40,42,44,46,48,50,55,60,62,63,64,
%T A121719 66,68,69,70,77,80,82,84,86,88,90,93,96,99,100,110,112,114,116,118,
%U A121719 120,121,130,132,134,136,138,140,143,144
%N A121719 Strings of digits which are composite regardless of the base in which they are interpreted. Exclude bases in which numbers are not interpretable.
%C A121719 Comments from _Franklin T. Adams-Watters_:
%C A121719 "Think of these as polynomials. E.g. 121 is the polynomial n^2+2n+1. There are three cases:
%C A121719 "(1) If the coefficients (digits) all have a common factor, the result will be divisible by that factor.
%C A121719 "(2) If the polynomial can be factored, the numbers will be composite. n^2+2n+1 = (n+1)^2, so it is always composite.
%C A121719 "(3) Otherwise, look at the polynomial modulo primes up to its degree. For example, 112 (n^2+n+2, degree 2) modulo 2 is always 0, so it is always divisible by 2.
%C A121719 "Note that condition (1) is really a special case of condition (2), where one of the factors is a constant.
%C A121719 "If none of the above conditions apply, the polynomial will (probably) have prime values."
%C A121719 From _Iain Fox_, Sep 02 2020: (Start)
%C A121719 lim_{k->infinity} (1/k)*Sum_{i=1..k} a_c(i) > .3 if it exists, where a_c(n) is the characteristic function of a(n) (1 if n is in a(n), otherwise 0).
%C A121719 If the Bunyakovsky conjecture is true, the list of reasons a number is in this sequence detailed by _Franklin T. Adams-Watters_ above is a complete list.
%C A121719 If the Bunyakovsky conjecture and the Extended Riemann Hypothesis are true, the above limit equals 4340435807/13235512500 = 0.3279386... (proof by Ravi Fernando in link by Iain Fox).
%C A121719 All members of A008592 except 1 and 10 are in this sequence.
%C A121719 (End)
%H A121719 Iain Fox, <a href="/A121719/b121719.txt">Table of n, a(n) for n = 1..10000</a>
%H A121719 Iain Fox, <a href="https://math.stackexchange.com/questions/3810150/what-percentage-of-positive-integers-written-in-base-10-are-composite-regardle/">What percentage of positive integers, written in base 10, are composite regardless of what base they are interpreted in?</a>, Math StackExchange, September 2020.
%H A121719 Ed Pegg, Jr., <a href="https://mathworld.wolfram.com/BouniakowskyConjecture.html">Bouniakowsky Conjecture</a>.
%H A121719 Eric W. Weisstein, <a href="https://mathworld.wolfram.com/ExtendedRiemannHypothesis.html">Extended Riemann Hypothesis</a>.
%H A121719 Wikipedia, <a href="https://en.wikipedia.org/wiki/Bunyakovsky_conjecture">Bunyakovsky conjecture</a>.
%H A121719 Wikipedia, <a href="https://en.wikipedia.org/wiki/Generalized_Riemann_hypothesis">Generalized Riemann Hypothesis</a>.
%e A121719 String 55 in every base in which it is interpretable is divisible by 5. String 1001 in base a is divisible by a+1. Hence 55 and 1001 both belong to this sequence.
%o A121719 (PARI) is(n)=if(n<10, return(!isprime(n)&&n>1)); if(content(n=digits(n))>1, return(1)); if(vecsum(factor(n*=vectorv(#n, i, x^(#n-i)))[,2])>1, return(1)); forprime(p=2, #n-1, for(x=1, p, if(eval(n)%p, next(2))); return(1)); for(x=vecmax(Vec(n))+1, +oo, if(isprime(eval(n)), return(0))) \\ _Iain Fox_, Aug 31 2020
%Y A121719 Supersequence: A002808.
%Y A121719 Cf. A008592, A267509.
%K A121719 nonn,easy,base
%O A121719 1,1
%A A121719 _Tanya Khovanova_, Sep 08 2006
%E A121719 More terms from _Franklin T. Adams-Watters_, Sep 12 2006