A373669 Least k such that the k-th maximal run of non-prime-powers has length n. Position of first appearance of n in A110969, and the sequence ends if there is none.
1, 5, 7, 12, 18, 190, 28, 109, 40, 28195574, 53
Offset: 1
Examples
The maximal runs of non-prime-powers begin: 1 6 10 12 14 15 18 20 21 22 24 26 28 30 33 34 35 36 38 39 40 42 44 45 46 48 50 51 52 54 55 56 57 58 60
Links
Crossrefs
For squarefree runs we have firsts of A120992.
For prime-powers runs we have firsts of A174965.
The sorted version is A373670.
For antiruns we have firsts of A373672.
For runs of non-prime-powers:
- length A110969
- min A373676
- max A373677
- sum A373678
A000961 lists the powers of primes (including 1).
Programs
-
Mathematica
q=Length/@Split[Select[Range[10000],!PrimePowerQ[#]&],#1+1==#2&]//Most; spna[y_]:=Max@@Select[Range[Length[y]],SubsetQ[y,Range[#1]]&]; Table[Position[q,k][[1,1]],{k,spna[q]}]
Comments