OFFSET
1,2
COMMENTS
A run of a sequence (in this case A361102) is an interval of positions at which consecutive terms differ by one.
Are there only 9 terms?
From David A. Corneth, Jun 14 2024: (Start)
No. a(10) exists.
Between the prime 144115188075855859 and 144115188075855872 = 2^57 there are 12 non-prime-powers so a(12) exists. (End)
LINKS
EXAMPLE
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
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]}]
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).
KEYWORD
nonn,more
AUTHOR
Gus Wiseman, Jun 14 2024
STATUS
approved