login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A361173 Numbers k such that, in base 4, the greatest prime less than 4^k and the least prime greater than 4^k have no common digit. 0
1, 4, 28, 83, 1816 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
In base 4 all consecutive primes with no common digit are of this form, except for 2 and 3.
It is unknown whether this sequence is infinite.
Base 2 and base 3 have no such primes.
LINKS
EXAMPLE
k=4 is a term: the consecutive primes are 251 and 257. In base 4 their representations are 3323 and 10001, which have no common digit.
MATHEMATICA
Select[Range[100], ! IntersectingQ @@ IntegerDigits[NextPrime[4^#, {-1, 1}], 4] &] (* Amiram Eldar, Mar 03 2023 *)
PROG
(PARI) isok(k) = #setintersect(Set(digits(precprime(4^k), 4)), Set(digits(nextprime(4^k), 4))) == 0; \\ Michel Marcus, Mar 03 2023
(Python)
from sympy.ntheory import digits, nextprime, prevprime
def ok(n):
p, q = prevprime(4**n), nextprime(4**n)
return set(digits(p, 4)[1:]) & set(digits(q, 4)[1:]) == set()
print([k for k in range(1, 99) if ok(k)]) # Michael S. Branicky, Mar 03 2023
CROSSREFS
Sequence in context: A085001 A153784 A030117 * A005634 A183485 A183437
KEYWORD
nonn,base,more
AUTHOR
Lewis Baxter, Mar 02 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 10:01 EDT 2024. Contains 371967 sequences. (Running on oeis4.)