OFFSET
1,1
COMMENTS
Sondow (2017) shows that d must be composite. Can d be a prime power?
The corresponding sequence of smallest such d is A290041.
The first term a(n) for which more than one d exists is a(165) = 101000, where d = 20 or d = 100.
d cannot be a prime power p^r | m if p^(r+1) does not divide m. Can d = 6? - Jonathan Sondow, Dec 26 2017
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..654 (terms < 400000)
C. Babbage, Demonstration of a theorem relating to prime numbers, Edinburgh Philosophical Journal, 1 (1819), 46-49.
J. Sondow, Extending Babbage's (non-)primality tests, in Combinatorial and Additive Number Theory II, Springer Proc. in Math. & Stat., Vol. 220, 269-277, CANT 2015 and 2016, New York, 2017; arXiv:1812.07650 [math.NT], 2018.
J. Sondow, Problem 12030, Amer. Math. Monthly, 125 (2018), 276.
EXAMPLE
The first case is binomial(260+10,10) = 479322759878148681 == 1 mod 260, so a(1) = 260.
MATHEMATICA
Select[ Range[ 30000], (d = Divisors[#]; Product[ Mod[ Binomial[# + d[[k]], d[[k]]], #] - 1, {k, 2, Length[d]}] == 0) &]
PROG
(PARI) is(n) = my(d=divisors(n)); for(k=2, #d, if(Mod(binomial(n+d[k], d[k]), n)==1, return(1))); 0 \\ Felix Fröhlich, Dec 26 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Jonathan Sondow, Jul 23 2017
STATUS
approved