Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A096696
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A096696 Consider the n-th prime, p_n, as the beginning of 2k+1 consecutive primes; then a(n) = p_(n+k) a balanced prime of order k, k maximized, or 0 if no such prime exists. +0
1
0, 5, 29, 37, 0, 0, 0, 0, 0, 149, 53, 0, 53, 71, 137, 227, 0, 0, 89, 79, 0, 0, 0, 0, 179, 0, 0, 173, 173, 0, 0, 419, 0, 157, 0, 157, 173, 0, 173, 0, 263, 0, 0, 0, 0, 211, 229, 0, 353, 397, 0, 0, 353, 359, 409, 577, 0, 353, 383, 353, 0, 0, 0, 0, 0, 0, 349, 349, 0, 0, 0, 397, 373 (list; graph; listen)
OFFSET

1,2

COMMENT

a(n) either equals 0 or belongs to A090403.

EXAMPLE

a(2) = 5 because beginning with the second prime, 3, there is a run of three prime, (3,5,7) the average and median of which is 5.

a(5) = 0 because there does not exist a run of 2k + 1 primes such that the arithmetic mean and the median are the same.

MATHEMATICA

f[n_] := Block[{k = 1, p = 0}, While[k < 10^4, If[(Plus @@ Table[Prime[i], {i, n, n + 2k}]) == (2k + 1)Prime[n + k], p = Prime[n + k]]; k++ ]; p]; Table[ f[n], {n, 74}]

CROSSREFS

Cf. A090403.

Sequence in context: A001990 A043062 A053244 this_sequence A115279 A087879 A091729

Adjacent sequences: A096693 A096694 A096695 this_sequence A096697 A096698 A096699

KEYWORD

nonn

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Jul 02 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 24 12:00 EDT 2008. Contains 142294 sequences.


AT&T Labs Research