OFFSET
1,1
COMMENTS
1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..100
EXAMPLE
a(n): 2 5 19 29 181
np 3 7 23 31 191
[1 0] [1 0 1] [1 0 0 1 1] [1 1 1 0 1] [1 0 1 1 0 1 0 1]
[1 1] [1 1 1] [1 0 1 1 1] [1 1 1 1 1] [1 0 1 1 1 1 1 1]
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
n: 1 2 3 4 5
PROG
(Python)
from sympy import nextprime
def A374178(n):
p = 2
while (q:=nextprime(p)):
if (p&q).bit_count() == n:
return p
p = q # Chai Wah Wu, Jul 08 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Hugo Pfoertner, Jul 08 2024
STATUS
approved