Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A152217
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A152217 Primes p == 1 (mod 3) such that ((p-1)/3)! == 1 (mod p). +0
1
3571, 4219, 13669, 25117, 55897, 89269, 102121, 170647, 231019, 246247, 251431 (list; graph; listen)
OFFSET

1,1

COMMENT

The Wilson theorem states that p is prime if and only if (p-1)! = -1 (mod p). If p = 3 (mod 4) then ((p-1)/2)! = +/- 1 (mod p).

LINKS

J. B. Cosgrave, Jacobi [From Francois Brunault (brunault(AT)gmail.com), Nov 29 2008]

Wikipedia, Wilson's theorem

EXAMPLE

For n = 1 the prime a(1) = 3571 divides 1190! - 1.

PROGRAM

(PARI) forprime(p=2, 30000, if(p%3==1 & ((p-1)/3)!%p==1, print(p)))

CROSSREFS

Seems to be a subsequence of A002407 and therefore of A003215 (differences of consecutive cubes). See also A058302 and A055939 for the sequences corresponding to ((p-1)/2)! = +/- 1 (mod p).

Sequence in context: A104207 A107646 A071144 this_sequence A004932 A004952 A004972

Adjacent sequences: A152214 A152215 A152216 this_sequence A152218 A152219 A152220

KEYWORD

nonn

AUTHOR

Francois Brunault (brunault(AT)gmail.com), Nov 29 2008, Nov 30 2008

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