login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A246791 Smallest number m such that for 0 <= k < n, np(m+k) = np(m)+k, where np(t) is number of primes p with prime(t) < p < prime(t)^(1 + 1/t). 2
1, 4, 15, 136, 2128, 15453, 479403, 1184231, 10975072, 27112368, 175600366, 2304656281, 14896902677, 59331462112 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
np(m) = A182134(m).
According to the definition, numbers np(a(n)), np(a(n)+1), ..., np(a(n)+n-2), np(a(n)+n-1) are n consecutive numbers in ascending order.
a(15) > 10^12. - Robert Price, Nov 19 2014
See A247116 for the corresponding values of np.
LINKS
EXAMPLE
a(8) = 1184231 since np(1184231) = 17, np(1184231+1) = 18, ..., np(1184231+6) = 23, np(1184231+7) = 24 are 8 consecutive numbers and 1184231 is the smallest number with this property.
MATHEMATICA
np[n_] := np[n] = Length[Select[Range[Prime[n]+1, Prime[n]^(1 + 1/n)], PrimeQ]]; a[1]=1; a[n_] := a[n] = (For[m = a[n-1], c = Table[np[m+k], {k, 0, n-1}]; c != Range[Min[c], Max[c]], m++]; m); Do[Print[a[n]], {n, 8}]
PROG
(PARI) np(t) = primepi(prime(t)^(1 + 1/t)) - t;
ok(m, n) = {for (k=0, n-1, if (np(m+k) != np(m)+k, return(0)); ); return (1); }
a(n) = {m = 1; while (! ok(m, n), m++); m; } \\ Michel Marcus, Nov 25 2014
CROSSREFS
Sequence in context: A136506 A362499 A323564 * A037447 A197753 A197934
KEYWORD
nonn,more
AUTHOR
Farideh Firoozbakht, Oct 16 2014
EXTENSIONS
a(9)-a(14) from Robert Price, Nov 19 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)