A248211 First differences of omega(n), the number of distinct prime factors function (A001221).
1, 0, 0, 0, 1, -1, 0, 0, 1, -1, 1, -1, 1, 0, -1, 0, 1, -1, 1, 0, 0, -1, 1, -1, 1, -1, 1, -1, 2, -2, 0, 1, 0, 0, 0, -1, 1, 0, 0, -1, 2, -2, 1, 0, 0, -1, 1, -1, 1, 0, 0, -1, 1, 0, 0, 0, 0, -1, 2, -2, 1, 0, -1, 1, 1, -2, 1, 0, 1, -2, 1, -1, 1, 0, 0, 0, 1, -2, 1
Offset: 1
Links
- Eric M. Schmidt, Table of n, a(n) for n = 1..10000
- Paul Erdős, Carl Pomerance and András Sárközy, On locally repeated values of certain arithmetic functions. II, Acta Math. Hungar. 49 (1987), 251-259.
Crossrefs
Programs
-
Maple
with(numtheory): A248211:=n->nops(factorset(n+1))-nops(factorset(n)): seq(A248211(n), n=1..100);
-
Mathematica
Table[PrimeNu[n + 1] - PrimeNu[n], {n, 100}] (* Hurt *) Differences[PrimeNu[Range[100]]] (* Alonso del Arte, Oct 04 2014 *)
-
PARI
a(n) = omega(n+1) - omega(n); \\ Michel Marcus, Dec 29 2022
Formula
G.f.: (1 - x)*Sum_{k>=1} x^(prime(k)-1)/(1 - x^prime(k)). - Ilya Gutkovskiy, Mar 15 2017
Comments