Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A084833
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A084833 a(n) is the smallest number such that a(n)+a(n-1), a(n)+a(n-1)+a(n-2), ..., a(n)+...+a(1) are not prime. +0
1
1, 3, 5, 1, 15, 9, 15, 6, 3, 6, 21, 6, 3, 6, 15, 6, 3, 6, 3, 9, 3, 9, 15, 6, 3, 6, 3, 9, 9, 9, 3, 9, 9, 9, 3, 6, 3, 3, 3, 3, 3, 6, 15, 6, 3, 3, 3, 6, 9, 6, 3, 6, 9, 9, 3, 6, 3, 6, 15, 6, 3, 6, 3, 9, 3, 9, 3, 9, 9, 6, 3, 6, 9, 6, 3, 3, 3, 6, 3, 9, 3, 6, 3, 3, 3, 6, 3, 6, 3, 6, 9, 6, 3, 3, 3, 6, 9, 6, 3 (list; graph; listen)
OFFSET

1,2

COMMENT

No sum of a continuous subsequence is ever prime. The sequence consists only of multiples of 3 after n=4?

EXAMPLE

a(5)=15 as 1+3+5+1+15=25, 3+5+1+15=24 and 5+1+15=21

PROGRAM

(PARI) { checkprime(a, b)=local(fl); fl=0; for (i=1, b-1, if (isprime(a+s[i]), fl=1; break)); fl } { p=vector(100); p[1]=1; pc=2; while (pc<100, x=1; s=vector(100); for (i=1, pc-1, s[i]=sum(k=i, pc-1, p[k])); i=1; while (checkprime(x, pc), x++); p[pc]=x; pc++); p }

CROSSREFS

Cf. A084834.

Sequence in context: A138259 A077021 A143250 this_sequence A069111 A021288 A140735

Adjacent sequences: A084830 A084831 A084832 this_sequence A084834 A084835 A084836

KEYWORD

nonn

AUTHOR

Jon Perry (perry(AT)globalnet.co.uk), Jun 06 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 December 2 15:58 EST 2008. Contains 150992 sequences.


AT&T Labs Research