Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A104884
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A104884 Records in A104883. +0
2
4, 5, 8, 24, 54, 117, 222, 258, 291, 591, 888, 951, 1656, 1674, 2451, 2577, 4212, 4857, 6597, 7398, 10758, 10950, 11601, 19608, 20604, 27411, 35157, 43338, 45174, 46920, 53412, 71661, 90699, 96681, 107385, 123051, 130782, 189741, 225747, 273738 (list; graph; listen)
OFFSET

1,1

COMMENT

a(k) has the largest equal 'gap' between the nearest primes so far, i.e.; (the sum of the two nearest primes)/2 equals a(k).

MATHEMATICA

f[n_] := Block[{k}, If[ OddQ[n], k = 2, k = 1]; While[ !PrimeQ[n - k] || !PrimeQ[n + k], k += 2]; k]; t = Table[f[n], {n, 4, 10^4}]; u = Table[0, {80}]; Do[a = t[[n]]; If[a < 81 && u[[a]] == 0, u[[a]] = n + 3], {n, 10^4}]; a = 0; lst = {}; Do[ If[u[[n]] > a, a = u[[n]]; AppendTo[lst, a]], {n, 80}]; lst

CROSSREFS

Cf. A104883, A082467.

Sequence in context: A019526 A050892 A072808 this_sequence A113726 A140315 A055497

Adjacent sequences: A104881 A104882 A104883 this_sequence A104885 A104886 A104887

KEYWORD

nonn

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr) and Robert G. Wilson v (rgwv(AT)rgwv.com), Mar 28 2005

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 August 30 13:03 EDT 2008. Contains 143253 sequences.


AT&T Labs Research