OFFSET
1,2
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = Sum_{k=1..n} 0^A073490(k).
MATHEMATICA
b[n_] := With[{pp = PrimePi @ FactorInteger[ n ][[All, 1]]},
Boole[pp[[-1]] - pp[[1]] + 1 == Length[pp]]]; (* b is A137794 *)
Array[b, 105] // Accumulate (* Jean-François Alcover, Dec 09 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Feb 09 2008
STATUS
approved