OFFSET
1,2
COMMENTS
Conjecture: a(n) can be only 1, 2, or 3 (with the first occurrences of 3 appearing at n = 4, 9, 30, 327 and 3512).
One less than the number of prime powers between prime(n) and prime(n+1), inclusive. - Gus Wiseman, Jan 09 2025
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
Paolo Xausa, 1200 X 1200 raster image of a(n), n = 1..1440000, read left to right, top to bottom, showing a(n) = 1 in blue, a(n) = 2 in white and a(n) = 3 in red.
FORMULA
a(n) = A080101(n) + 1. - Gus Wiseman, Jan 09 2025
MATHEMATICA
With[{upto=1000}, Map[Length, Most[Split[PrimePi[Select[Range[upto], PrimePowerQ]]]]]] (* Considers prime powers up to 1000 *)
CROSSREFS
Run lengths of A362965.
Subtracting one gives A080101.
For non prime powers we have A368748.
Positions of terms > 1 are A377057.
Positions of 1 are A377286.
Positions of 2 are A377287.
For perfect powers we have A377432.
For squarefree we have A373198.
A246655 lists the prime powers not including 1.
A366835 counts primes between prime powers.
KEYWORD
nonn
AUTHOR
Paolo Xausa, Oct 25 2023
STATUS
approved