A384883 Number of maximal sparse subsets of the binary indices of n, where a set is sparse iff 1 is not a first difference.
1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 1, 2, 2, 2, 2, 3, 1, 1, 1, 2, 1, 1, 2, 2, 2, 2, 2, 4, 2, 2, 3, 4, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 1, 2, 2, 2, 2, 3, 2, 2, 2, 4, 2, 2, 4, 4, 2, 2, 2, 4, 3, 3, 4, 5, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 1, 2, 2, 2, 2, 3, 1, 1, 1, 2, 1, 1, 2
Offset: 0
Keywords
Examples
The binary indices of 27 are {1,2,4,5}, with maximal sparse subsets {{1,4},{1,5},{2,4},{2,5}}, so a(27) = 4.
Crossrefs
Programs
-
Mathematica
spars[S_]:=Select[Subsets[S],FreeQ[Differences[#],1]&]; bpe[n_]:=Join@@Position[Reverse[IntegerDigits[n,2]],1]; maximize[sys_]:=Complement@@Prepend[Most[Subsets[#]]&/@sys,sys]; Table[Length[maximize[spars[bpe[n]]]],{n,0,100}]
Comments