Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A089043
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A089043 n!^2+(-1)^n : p = 2*n+1 is prime iff it divides a(n). +0
1
0, 5, 35, 577, 14399, 518401, 25401599, 1625702401, 131681894399, 13168189440001, 1593350922239999, 229442532802560001, 38775788043632639999, 7600054456551997440001 (list; graph; listen)
OFFSET

0,2

COMMENT

p = 2*n+1 is prime iff it divides a(n) (wilson's theorem) for instance let n=5, p =11 : a(5) = 14399 = 11*1309, so 11 is prime

FORMULA

a(n) = n^2*(a(n-1)-(-1)^(n-1))+(-1)^n; generating function = n!^2+(-1)^n

EXAMPLE

a(5) = 14399 because 14399=(5!)^2+(-1)^5

CROSSREFS

Sequence in context: A125802 A034217 A011556 this_sequence A034236 A058015 A053420

Adjacent sequences: A089040 A089041 A089042 this_sequence A089044 A089045 A089046

KEYWORD

easy,nonn

AUTHOR

Serge Boisse (serge.boisse(AT)aviation-civile.gouv.fr), Dec 02 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 15 00:47 EST 2009. Contains 170825 sequences.


AT&T Labs Research