OFFSET
1,1
EXAMPLE
a(1) = 3 since Sum_{k=1..2} 1/prime(k) = 1/2 + 1/3 = 5/6 < 1 and Sum_{k=1..3} 1/prime(k) = 1/2 + 1/3 + 1/5 = 31/30 > 1.
MATHEMATICA
next[p_, n_] := Module[{k = p + 1}, While[PrimeOmega[k] != n, k++]; k]; a[n_] := Module[{k = 0, sum = 0, p = 0}, While[sum <= 1, p = next[p, n]; sum += 1/p; k++]; k]; Array[a, 5]
PROG
(PARI) nextnum(p, n) = {my(k = p + 1); while(bigomega(k) != n, k++); k; }
a(n) = {my(k = 0, sum = 0, p = 0); while(sum <= 1, p = nextnum(p, n); sum += 1/p; k++); k; }
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Amiram Eldar, Jul 01 2024
STATUS
approved