OFFSET
1,2
COMMENTS
The terms form a pattern similar to that in A109812. In the first 250000 terms the fixed points are 1, 2, 3, 8, 3650, 50624, 203074. The sequence is conjectured to be a permutation of the positive integers.
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..10000
Scott R. Shannon, Image of the first 250000 terms. The green line is a(n) = n.
EXAMPLE
a(5) = 15 as a(4) = 7 = 111_2 is prime, and ((15 = 1111_2) AND 111_2) = 111_2 = 7.
a(6) = 16 as a(5) = 15 = 1111_2 is not prime, and ((16 = 10000_2) AND 1111_2) = 0.
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Aug 30 2024
STATUS
approved