login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A163077 Numbers n such that n$ + 1 is prime. Here '$' denotes the swinging factorial function (A056040). 3
0, 1, 2, 3, 4, 5, 8, 9, 14, 15, 24, 27, 31, 38, 44, 45, 49, 67, 76, 92, 99, 119, 124, 133, 136, 139, 144, 168, 171, 185, 265, 291, 332, 368, 428, 501, 631, 680, 689, 696, 765, 789, 890, 1034, 1233, 1384, 1517, 1615, 1634, 1809, 2632, 2762, 3925, 4419, 5108, 5426 (list; graph; refs; listen; history; internal format)
OFFSET

1,3

REFERENCES

Peter Luschny, "Divide, swing and conquer the factorial and the lcm{1,2,...,n}", preprint, April 2008.

LINKS

Peter Luschny, Swinging Primes.

EXAMPLE

0$+1=1+1=2 is prime, so 0 is in the sequence.

MAPLE

a := proc(n) select(x -> isprime(A056040(x)+1), [$0..n]) end:

MATHEMATICA

fQ[n_] := PrimeQ[1 + 2^(n - Mod[n, 2])*Product[k^((-1)^(k + 1)), {k, n}]]; Select[ Range[0, 8660], fQ] [From Robert G. Wilson v (rgwv(AT)rgwv.com), Aug 09 2010]

CROSSREFS

Cf. A163078, A163079, A163080, A002981.

Sequence in context: A105317 A094103 A054181 * A204810 A054168 A085152

Adjacent sequences:  A163074 A163075 A163076 * A163078 A163079 A163080

KEYWORD

nonn

AUTHOR

Peter Luschny (peter(AT)luschny.de), Jul 21 2009

EXTENSIONS

a(45) - a(56) from Robert G. Wilson v (rgwv(AT)rgwv.com), Aug 09 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 13 03:07 EST 2012. Contains 205435 sequences.