This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A374247 #6 Jul 08 2024 16:41:37 %S A374247 0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0, %T A374247 0,2,0,0,0,1,0,0,0,1,1,0,0,1,0,1,0,1,0,1,0,1,0,0,0,1,0,0,1,0,0,0,0,1, %U A374247 0,0,0,3,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0 %N A374247 The greatest number of runs possible in a permutation of the prime factors of n (A373957) minus the number of distinct such factors (A001221). %C A374247 If n has separable prime factors (A335433), then a(n) = A001222(n) - A001221(n) = A046660(n). A multiset is separable iff it has an anti-run permutation (meaning there are no adjacent equal parts). %F A374247 a(n) = A373957(n) - A001221(n). %e A374247 The runs of the 6 permutations of the prime factors of 36 are: %e A374247 ((2,2),(3,3)) %e A374247 ((2),(3),(2),(3)) %e A374247 ((2),(3,3),(2)) %e A374247 ((3),(2,2),(3)) %e A374247 ((3),(2),(3),(2)) %e A374247 ((3,3),(2,2)) %e A374247 The longest length is 4, so a(36) = 4 - 2 = 2. %t A374247 prifacs[n_]:=If[n==1,{},Flatten[ConstantArray@@@FactorInteger[n]]]; %t A374247 Table[Max@@Table[Length[Split[y]], {y,Permutations[prifacs[n]]}]-PrimeNu[n],{n,100}] %Y A374247 Positions of first appearances appear to be A026549. %Y A374247 Positions of nonzero terms are A126706, complement A303554. %Y A374247 This is an opposite version of A373957. %Y A374247 The sister-sequence A374246 uses A001222 instead of A001221. %Y A374247 This is the number of nonzero terms in row n of A374252. %Y A374247 A003242 counts run-compressed compositions, i.e., anti-runs. %Y A374247 A008480 counts permutations of prime factors, by number of runs A374252. %Y A374247 A027746 lists prime factors, row-sums A001414. %Y A374247 A027748 is run-compression of prime factors, row-sums A008472. %Y A374247 A304038 is run-compression of prime indices, row-sums A066328. %Y A374247 A333755 counts compositions by number of runs. %Y A374247 A335433 lists separable numbers, complement A335448. %Y A374247 A374250 maximizes sum of run-compression, for indices A373956. %Y A374247 Cf. A007947, A046660, A124767, A151821, A238130, A373951, A374251. %K A374247 nonn %O A374247 1,36 %A A374247 _Gus Wiseman_, Jul 07 2024