Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A087338
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A087338 a(1) = 1, then smallest number >1 such that every partial sum as well as every partial product + 1 both are prime for n > 1. +0
1
1, 2, 2, 18, 6, 8, 30, 4, 26, 6, 6, 4, 50, 4, 56, 6, 22, 6, 50, 40, 12, 24, 138, 20, 132, 70, 78, 8, 232, 2, 160, 144, 32, 322, 12, 44, 216, 294, 60, 394, 1460, 82, 54, 452, 168, 1024, 86, 76, 308, 208, 104, 456, 268, 396, 350, 120, 10, 236, 180, 402, 112, 336, 530, 318, 112 (list; graph; listen)
OFFSET

1,2

EXAMPLE

Partial sums : 1+2 = 3, 1+2+2 = 5, 1+2+2+18 = 23; partial products + 1,1*2 + 1= 3, 1*2*2 +1 =5,1*2*2*18 + 1 = 73.

MATHEMATICA

a = {1}; s = 1; p = 1; Do[k = 2; While[ !PrimeQ[s + k] || !PrimeQ[p*k + 1], k++ ]; AppendTo[a, k]; s += k; p *= k, {n, 1, 65}]

CROSSREFS

Sequence in context: A002567 A000528 A074970 this_sequence A055735 A100304 A096190

Adjacent sequences: A087335 A087336 A087337 this_sequence A087339 A087340 A087341

KEYWORD

nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Sep 06 2003

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Sep 07 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 November 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research