OFFSET
1,1
COMMENTS
Apply A175046 to the primes.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
PROG
(Python)
from sympy import prime
def a(n):
b = bin(prime(n))[2:]
return int(b.replace("01", "001").replace("10", "110") + b[-1], 2)
print([a(n) for n in range(1, 48)]) # Michael S. Branicky, Dec 07 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Sep 19 2018
EXTENSIONS
More terms from Rémy Sigrist, Sep 20 2018
STATUS
approved