OFFSET
0,1
COMMENTS
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..3314
FORMULA
a(n) <= A201914(n). - Rémy Sigrist, Apr 11 2019
a(n) = min_{k>=n} A090593(k). - Chai Wah Wu, Apr 26 2019
EXAMPLE
a(0) = 2, the smallest prime containing >= 0 1's.
a(1) = 2, the smallest prime containing >= 1 consecutive 1's.
a(2) = 3, the smallest prime containing >= 2 consecutive 1's.
PROG
(PARI) nbo(n)=if (n==0, return (0)); n>>=valuation(n, 2); if(n<2, return(n)); my(e=valuation(n+1, 2)); max(e, nbo(n>>e)); \\ A038374
a(n) = my(p=2); while(nbo(p) < n, p=nextprime(p+1)); p; \\ Michel Marcus, Apr 14 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
John Mason, Apr 11 2019
EXTENSIONS
a(28)-a(32) from Chai Wah Wu, Apr 26 2019
STATUS
approved