OFFSET
1,1
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
PROG
(PARI) A339900(n) = { my(lev=1+valuation(n, 2), k=(1+(n>>(lev-1)))/2); forprime(p=3, , if(valuation(p-1, 2)==lev, k--; if(!k, return(p)))); };
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Antti Karttunen, Dec 25 2020
STATUS
approved