OFFSET
1,1
COMMENTS
Also, lexicographically earliest sequence of distinct positive integers such that for any n > 0, prime(a(n)) AND n = n (where prime(k) denotes the k-th prime number and AND denotes the bitwise AND operator).
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, PARI program
EXAMPLE
A370727(42) = 52, hence a(52) = 42.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Feb 28 2024
STATUS
approved
