A121719 Strings of digits which are composite regardless of the base in which they are interpreted. Exclude bases in which numbers are not interpretable.
4, 6, 8, 9, 20, 22, 24, 26, 28, 30, 33, 36, 39, 40, 42, 44, 46, 48, 50, 55, 60, 62, 63, 64, 66, 68, 69, 70, 77, 80, 82, 84, 86, 88, 90, 93, 96, 99, 100, 110, 112, 114, 116, 118, 120, 121, 130, 132, 134, 136, 138, 140, 143, 144
Offset: 1
Examples
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.
Links
- Iain Fox, Table of n, a(n) for n = 1..10000
- Iain Fox, What percentage of positive integers, written in base 10, are composite regardless of what base they are interpreted in?, Math StackExchange, September 2020.
- Ed Pegg, Jr., Bouniakowsky Conjecture.
- Eric W. Weisstein, Extended Riemann Hypothesis.
- Wikipedia, Bunyakovsky conjecture.
- Wikipedia, Generalized Riemann Hypothesis.
Programs
-
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
Extensions
More terms from Franklin T. Adams-Watters, Sep 12 2006
Comments