Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A083309
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A083309 a(n) is the number of times that sums 3+-5+-7+-11+-...+-prime(2n+1) of the first 2n odd primes is zero. There are 2^(2n-1) choices for the sign patterns. +0
5
0, 0, 1, 2, 7, 19, 63, 197, 645, 2172, 7423, 25534, 89218, 317284, 1130526, 4033648, 14515742, 52625952, 191790090, 702333340, 2585539586, 9570549372, 35562602950, 131774529663, 491713178890, 1842214901398, 6909091641548 (list; graph; listen)
OFFSET

1,4

COMMENT

The frequency of each possible sum is computed by the Mathematica program without explicitly computing the individual sums. Let S = 3+5+7+...+Prime(2n+1). Because the primes do not grow very fast, it is easy to show that, for n > 2, all even numbers between -S+20 and S-20 occur at least once as a sum.

a(n) is the maximal number of subsets of {prime(2), prime(3),..., prime(n+1)} that share the same sum. Cf. A025591, A083527.

LINKS

T. D. Noe, Table of n, a(n) for n=1..100

T. D. Noe, Extremal Sums of Sequences

EXAMPLE

a(3) = 1 because there is only one sign pattern of the first six odd primes that yields zero: 3+5+7-11+13-17.

MATHEMATICA

d={1, 0, 0, 1}; nMax=32; zeroLst={}; Do[p=Prime[n+1]; d=PadLeft[d, Length[d]+p]+PadRight[d, Length[d]+p]; If[0==Mod[n, 2], AppendTo[zeroLst, d[[(Length[d]+1)/2]]]], {n, 2, nMax}]; zeroLst/2

CROSSREFS

Cf. A015818, A063865.

Cf. A022894 (sums of all primes)

Adjacent sequences: A083306 A083307 A083308 this_sequence A083310 A083311 A083312

Sequence in context: A030224 A114624 A091024 this_sequence A080873 A126162 A054423

KEYWORD

easy,nonn

AUTHOR

T. D. Noe (noe(AT)sspectra.com), Apr 29 2003

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 October 7 14:39 EDT 2008. Contains 144666 sequences.


AT&T Labs Research