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!)
A053663 Numbers k such that 2*k+1 does not divide k!+1. 2
1, 2, 4, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 34, 35, 36, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 64, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
Select[Range[100], !Divisible[#!+1, 2#+1]&] (* Harvey P. Dale, Sep 09 2014 *)
PROG
(PARI) isok(n) = (n!+1) % (2*n+1) \\ Michel Marcus, Jul 12 2013
(Magma) [n: n in [1..100] | not (Factorial(n)+1) mod (2*n+1) eq 0 ]; // G. C. Greubel, May 18 2019
(Sage) [n for n in (1..100) if not Mod(factorial(n)+1, 2*n+1)==0 ] # G. C. Greubel, May 18 2019
(GAP) Filtered([1..100], n-> not (Factorial(n)+1) mod (2*n+1)=0) # G. C. Greubel, May 18 2019
CROSSREFS
Cf. A005097, complement of A053662.
Sequence in context: A284958 A014530 A268445 * A324561 A288258 A075313
KEYWORD
easy,nonn
AUTHOR
Chris K. Caldwell, Feb 16 2000
EXTENSIONS
Data corrected by Michel Marcus, Jul 12 2013
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 April 24 05:36 EDT 2024. Contains 371918 sequences. (Running on oeis4.)