OFFSET
0,1
FORMULA
A001222(a(n-1) + a(n)) = n.
EXAMPLE
a(5) = 37 because a(4) + 37 = 48 = 2^4*3 has 5 prime factors counted with multiplicity.
MAPLE
R:= 2: t:= 2:
for n from 1 to 30 do
p:= 1:
do p:= nextprime(p)
until numtheory:-bigomega(t+p) = n;
R:= R, p;
t:= p;
od:
R;
MATHEMATICA
s={2}; Do[p=2; While[PrimeOmega[s[[-1]]+p]!=
k, p=NextPrime[p]]; Print[p]; AppendTo[s, p], {k, 1, 50}];
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov and Robert Israel, Jun 21 2023
STATUS
approved