Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A166339
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A166339 Numbers n such that Sum(n!/k!),k=0..n is prime. +0
1
1, 2, 2016, 3226, 8130 (list; graph; listen)
OFFSET

1,2

COMMENT

No further terms up to n=20000. The sequence a[n]=Sum(n!/k!),k=0..n is A000522.

FORMULA

n is an index of the sequence a[n]=Sum(n!/k!),k=0..n such that a[n] is prime.

EXAMPLE

For n=2, a[2]=5 which is a prime.

PROGRAM

(PARI) a=1; for(n=1, 20000, a=n*a+1; if(ispseudoprime(a, 0), print("n="n)));

CROSSREFS

Cf. A000522 (corresponding sequence).

Sequence in context: A160299 A125635 A124361 this_sequence A024034 A101722 A004908

Adjacent sequences: A166336 A166337 A166338 this_sequence A166340 A166341 A166342

KEYWORD

nonn

AUTHOR

Mike Oakes (mikeoakes2(AT)aol.com), Oct 12 2009

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 20 16:54 EST 2009. Contains 171081 sequences.


AT&T Labs Research