OFFSET
1,4
COMMENTS
An antirun of a sequence (in this case A000961 without 1) is an interval of positions at which consecutive terms differ by more than one.
LINKS
EXAMPLE
The maximal antiruns of prime-powers begin:
2
3
4
5 7
8
9 11 13 16
17 19 23 25 27 29 31
MATHEMATICA
Length/@Split[Select[Range[100], PrimePowerQ[#]&], #1+1!=#2&]//Most
CROSSREFS
For prime antiruns we have A027833.
For squarefree runs we have A120992.
For prime-power runs we have A174965.
For prime runs we have A175632.
For composite antiruns we have A373403.
For antiruns of prime-powers:
- length A373671 (this sequence)
- min A120430
- max A006549
For antiruns of non-prime-powers:
- length A373672
- min A373575
- max A255346
A000961 lists the powers of primes (including 1).
A025528 counts prime-powers up to n.
KEYWORD
nonn,more
AUTHOR
Gus Wiseman, Jun 14 2024
STATUS
approved