OFFSET
1,6
COMMENTS
The sequence {b(m), m>0} is always periodic (see A133900 and A133910), so one need only compute the first period to find a(n).
a(n) can be arbitrarily large.
a(n)/n can be arbitrarily close to 1.
The natural density of n such that a(n)>0, assuming it exists, is greater or equal to log(2).
a(n) is always even.
FORMULA
a(n) = 0 if n is prime or a power of a prime.
a(2p) = p-1 if p>2 is prime.
EXAMPLE
PROG
(PARI) a(n) = my(f=factor(n)); for (k=1, #f~, f[k, 2] += logint(n, f[k, 1])); my(nb=factorback(f), v=vector(nb, k, binomial(k+n, n) % n)); n - #Set(v); \\ Michel Marcus, Oct 13 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Hari Rajesh, Oct 12 2025
STATUS
approved
