OFFSET
1,2
COMMENTS
Conjecture: For every positive integer k there exists m with a(m) = k.
EXAMPLE
The first eight values of prime(n)/n are: 2/1 = 2, 3/2 = 1.5, 5/3 = 1.666..., 7/4 = 1.75, 11/5 = 2.2, 13/6 = 2.166..., 17/7 = 2.428..., 19/8 = 2.375.
Since 2 > 1.5, the first run has length 1, so a(1) = 1.
Since 1.5 < 1.666... < 1.75 < 2.2 and then 2.2 > 2.166..., the next run has length 4, so a(2) = 4.
Since 2.166... < 2.428... and then 2.428... > 2.375, the third run has length 2, so a(3) = 2.
MATHEMATICA
s={1}; p=1; Do[c=1; Until[Prime[p+1]/(p+1)<Prime[p]/p, c++; p++]; AppendTo[s, c-1], {i, 92}]; s (* James C. McMahon, Mar 16 2026 *)
PROG
(PARI) lista(nn) = my(v=vector(nn, n, prime(n)/n), nb=1, list=List()); for (n=2, nn, if (v[n] > v[n-1], nb++, listput(list, nb); nb = 1); ); Vec(list); \\ Michel Marcus, Mar 10 2026
CROSSREFS
KEYWORD
nonn
AUTHOR
Philip Jameson, Mar 07 2026
STATUS
approved
