login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A118136 a(n) = 2 + (2*n! mod n+1). 0
2, 2, 3, 2, 5, 2, 7, 2, 2, 2, 11, 2, 13, 2, 2, 2, 17, 2, 19, 2, 2, 2, 23, 2, 2, 2, 2, 2, 29, 2, 31, 2, 2, 2, 2, 2, 37, 2, 2, 2, 41, 2, 43, 2, 2, 2, 47, 2, 2, 2, 2, 2, 53, 2, 2, 2, 2, 2, 59, 2, 61, 2, 2, 2, 2, 2, 67, 2, 2, 2, 71, 2, 73, 2, 2, 2, 2, 2, 79, 2, 2, 2, 83, 2, 2, 2, 2, 2, 89, 2, 2, 2, 2, 2, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Prime generating formula based on Wilson's theorem.
REFERENCES
Wladyslaw Narkiewicz, The development of prime number theory: from Euclid to Hardy and Littlewood, Springer-Verlag, New York, 2000, pp. 46-47.
LINKS
M. Prunescu and L. Sauras-Altuzarra, An arithmetic term for the factorial function, Examples and Counterexamples, Vol. 5 (2024).
MAPLE
f:=n->(2*n! mod (n+1))+2; [seq(f(n), n=0..100)];
MATHEMATICA
a[n_] := 2 + Mod[2*n!, n + 1]
Table[a[n], {n, 0, 100}]
CROSSREFS
Sequence in context: A298422 A304716 A237984 * A356552 A258567 A076396
KEYWORD
nonn
AUTHOR
Roger L. Bagula, May 13 2006
EXTENSIONS
Edited by N. J. A. Sloane, Jun 12 2007
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 18 22:56 EDT 2024. Contains 370952 sequences. (Running on oeis4.)