A384175 Number of subsets of {1..n} with all distinct lengths of maximal runs (increasing by 1).
1, 2, 4, 7, 13, 24, 44, 77, 135, 236, 412, 713, 1215, 2048, 3434, 5739, 9559, 15850, 26086, 42605, 69133, 111634, 179602, 288069, 460553, 733370, 1162356, 1833371, 2878621, 4501856, 7016844, 10905449, 16904399, 26132460, 40279108, 61885621, 94766071, 144637928
Offset: 0
Keywords
Examples
The subset {2,3,5,6,7,9} has maximal runs ((2,3),(5,6,7),(9)), with lengths (2,3,1), so is counted under a(9). The a(0) = 1 through a(4) = 13 subsets: {} {} {} {} {} {1} {1} {1} {1} {2} {2} {2} {1,2} {3} {3} {1,2} {4} {2,3} {1,2} {1,2,3} {2,3} {3,4} {1,2,3} {1,2,4} {1,3,4} {2,3,4} {1,2,3,4}
Links
- Christian Sievers, Table of n, a(n) for n = 0..1000
Crossrefs
Programs
-
Mathematica
Table[Length[Select[Subsets[Range[n]],UnsameQ@@Length/@Split[#,#2==#1+1&]&]],{n,0,10}]
-
PARI
lista(n)={my(o=(1-x^(n+1))/(1-x)*O(y^(n+2)),p=prod(i=1,n,1+o+x*y^(i+1)/(1-y),1/(1-y)));p=subst(serlaplace(p),x,1);Vec(p-1)} \\ Christian Sievers, Jun 18 2025
Extensions
a(21) and beyond from Christian Sievers, Jun 18 2025
Comments