OFFSET
1,4
COMMENTS
If x is an integer > 1 and p is a prime divisor of x, then a tower of x subordinate to p is an integer t such that there exists a prime divisor q of x such that q <= p, and t is the highest power of q that is a divisor of x.
If (p-1)!+1 = Product_{k} q_k^(e_k), then a(n) = Product_{k>n} q_k^(e_k). - Sean A. Irvine, May 05 2025
Let p = prime(n) and k = (p-1)!+1. If m<p, then k == 1 mod m, so a(n) = k/(p-adic valuation of k). By Wilson's theorem, a(n)<=k/p. Conjecture: a(n) = k/p^2 if n = 3, 6, or 103 and a(n) = k/p otherwise. - Chai Wah Wu, May 11 2025
EXAMPLE
a(6) = 2834329 because ((13 - 1)! + 1)/w = (12! + 1)/w = (13^2*2834329)/w = 2834329, where w is the product of the towers of ((13 - 1)! + 1) subordinate to 13, w equaling 13^2.
PROG
(PARI) a(n) = my(p=prime(n), f=factor((p-1)! + 1, nextprime(p+1))); for (i=1, #f~, if (f[i, 1] <= p, f[1, 1] = 1)); factorback(f); \\ Michel Marcus, Apr 30 2025
(Python)
from sympy import prime, factorial
def A383257(n):
p = prime(n)
f = factorial(p-1)+1
a, b = divmod(f, p)
while not b:
f = a
a, b = divmod(f, p)
return f # Chai Wah Wu, May 12 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Mike Jones, Apr 29 2025
EXTENSIONS
More terms from Michel Marcus, Apr 30 2025
STATUS
approved
