OFFSET
1,2
COMMENTS
After the first term a(1) = 1, the next odd term is a(71) = 3465, the next term that is coprime to 6 is a(1058) = 95095, and the next term that is coprime to 30 is a(12174) = 2263261.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
60 is a term since A378053(60) = 166320 = 60 * 2772 is divisible by 60.
MATHEMATICA
Select[Range[2500], And @@ Divisible[{Times @@ ((d = Divisors[#]) + 1), Times @@ (Rest @ d - 1)}, #] &]
PROG
(PARI) is(k) = if(k == 1, 1, my(d = divisors(k)); !(gcd(prod(k=1, #d, d[k]+1), prod(k=2, #d, d[k]-1)) % k));
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Nov 15 2024
STATUS
approved