OFFSET
1,4
COMMENTS
FORMULA
a(n) = A335519(n) - 1.
EXAMPLE
The a(84) = 9 distinct nonempty contiguous subsequences of (4,2,1,1) are (1), (2), (4), (1,1), (2,1), (4,2), (2,1,1), (4,2,1), (4,2,1,1).
MATHEMATICA
Table[Length[Union[ReplaceList[If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]], {___, s__, ___}:>{s}]]], {n, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 20 2019
EXTENSIONS
Name corrected by Gus Wiseman, Jun 27 2020
STATUS
approved