[go: up one dir, main page]

login
A378309
a(n) = A010051(n) + A001222(n).
0
0, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 2, 2, 2, 4, 2, 3, 2, 3, 2, 2, 2, 4, 2, 2, 3, 3, 2, 3, 2, 5, 2, 2, 2, 4, 2, 2, 2, 4, 2, 3, 2, 3, 3, 2, 2, 5, 2, 3, 2, 3, 2, 4, 2, 4, 2, 2, 2, 4, 2, 2, 3, 6, 2, 3, 2, 3, 2, 3, 2, 5, 2, 2, 3, 3, 2, 3, 2, 5, 4, 2, 2, 4, 2, 2, 2, 4, 2, 4
OFFSET
1,2
FORMULA
a(n) = A113903(n) - A113903(n-1).
a(n) = 2 for prime n.
a(2*k) = A073093(k), for k >= 2.
MATHEMATICA
Array[Boole[PrimeQ[#]] + PrimeOmega[#] &, 100]
PROG
(PARI) a(n) = isprime(n) + bigomega(n); \\ Michel Marcus, Nov 23 2024
CROSSREFS
First differences of A113903.
Sequence in context: A336664 A335108 A359238 * A320011 A068049 A297850
KEYWORD
nonn,easy,new
AUTHOR
Paolo Xausa, Nov 22 2024
STATUS
approved