OFFSET
1,1
COMMENTS
72154484375 is a term. - Chai Wah Wu, Jan 13 2026
p^2 is a term if p is in A123692, i.e. 2859165058687921, 2707122349256919049, 44787780573344471569, 35625862920811846533601 are terms. - Chai Wah Wu, Jan 14 2026
7924899803125 is a term. - Chai Wah Wu, Jan 31 2026
LINKS
EXAMPLE
4 is a term because binomial(5*4, 4) = 4845, 5^4 = 625 and 4845 mod 4 = 625 mod 4 = 1.
MATHEMATICA
Do[If[ !PrimeQ[n], If[Mod[Binomial[5*n, n], n] == Mod[5^n, n], Print[n]]], {n, 1, 50000}]
Select[Range[250000], CompositeQ[#]&&Mod[Binomial[5#, #], #]==PowerMod[5, #, #]&] (* The program generates the first 12 terms of the sequence. *) (* Harvey P. Dale, Jul 28 2025 *)
PROG
(Python)
from itertools import count, islice
from sympy import isprime
from oeis_sequences.OEISsequences import binom_mod
def A109760_gen(startvalue=4): # generator of terms >= startvalue
for j in count(max(startvalue, 4)):
if not isprime(j) and binom_mod(5*j, j, j) == pow(5, j, j):
yield j
CROSSREFS
KEYWORD
hard,more,nonn
AUTHOR
Ryan Propper, Aug 12 2005
EXTENSIONS
a(11) from D. S. McNeil, Mar 15 2009
a(12) from Max Alekseyev, Sep 13 2009
a(13)-a(15) from Max Alekseyev, Nov 06 2009
a(16) from Chai Wah Wu, Jan 14 2026
a(17)-a(18) from Chai Wah Wu, Jan 15 2026
STATUS
approved
