OFFSET
1,2
COMMENTS
EXAMPLE
For n = 17, A005940(17) = 11, and A348717(11) = A348717(17) = 2, therefore 17 is included in this sequence. Moreover, any prime in this sequence must be one of the Fermat primes (A019434), because the primes are located at positions 2^k + 1 in the offset-1 variant of Doudna-tree, A005940.
For n = 25 and n = 49, A005940(25) = 49 and A005940(49) = 121, which are all squares of primes, and thus have the same A348717-value (4), therefore both 25 and 49 are terms.
PROG
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Antti Karttunen, Sep 02 2023
STATUS
approved