OFFSET
1,1
COMMENTS
The Lucas-Carmichael numbers (A006972) are a subset.
Contains p^(2k+1) for any prime p, since (x+1) | (x^n + 1) when n is odd.
The only even numbers in this sequence are the composite odd powers of 2. [Emmanuel Vantieghem, Jul 08 2013]
If you try to extend this idea to the divisors, the only integer which is satisfied is 1.
Extension to prime power divisors is possible. [Emmanuel Vantieghem, Jul 08 2013]
LINKS
Donovan Johnson, Table of n, a(n) for n = 1..10000
MATHEMATICA
fQ[n_] := !PrimeQ[n] && Union[ Mod[ n + 1, Transpose[ FactorInteger[n]][[1]] + 1]] == {0}; Select[ Range[20000], fQ[#] &]
PROG
(PARI) is(n)=my(f=factor(n)[, 1]); for(i=1, #f, if((n+1)%(f[i]+1), return(0))); !isprime(n) \\ Charles R Greathouse IV, Jan 15 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Aug 31 2000
STATUS
approved