cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A086448 a(n) = the least integer of the form [prime(n+1)+prime(n+2)+...+prime(n+k)]/prime(n).

Original entry on oeis.org

4, 4, 18, 16, 12, 12, 6, 16, 6, 102, 11, 93, 119, 345, 48, 240, 138, 100, 263, 19, 227, 282, 31, 1071, 11, 126, 386, 278, 184, 642, 164, 445, 55, 213, 89, 190, 895, 1120, 61, 258, 4629, 323, 122, 789, 5226, 59, 1292, 325, 364, 374, 430, 3939, 118, 695, 87, 73, 358
Offset: 1

Views

Author

Zak Seidov, Jul 20 2003

Keywords

Comments

It seems that a(n) exists for any n.
Among first 1000 terms, the largest term is a(793) = 1807606, with p = prime(793) = 6079, and 6079*1807606 = the sum of 42840 consecutive primes after p. - Zak Seidov, Nov 07 2014
Among first 10000 terms, the largest term is a(9349) = 30376745, with p = prime(9349) = 97159, and p*(9349) = the sum of 629543 consecutive primes after p: 2951374167455 = sum(prime(k), k = 9349 + 1..9349 + 629543) - Zak Seidov, Feb 21 2015

Examples

			a(3)=18 because prime(3)=5 and (7+11+13+17+19+23)/5 = 18.
		

Crossrefs

Programs

  • Mathematica
    bb={}; Do[s0=Prime[n0]; s=0; Do[If[IntegerQ[ss0=(s+=Prime[n])/s0], bb=Append[bb, ss0]; Break[]], {n, n0+1, 8000}], {n0, 1, 10}]; bb

Extensions

Edited by Don Reble, Nov 10 2005