OFFSET
0,5
EXAMPLE
a(4) = 3 as the largest palindromic divisor of 4! comes from the set {1, 2, 3, 4, 6, 8, 12, 24}. The largest palindrome is this set is 8 so a(4) = 4! / 8 = 3. - David A. Corneth, Oct 12 2022
PROG
(Python)
from sympy import divisors, factorial, multiplicity
def ispal(n): s = str(n); return s == s[::-1]
def b(f, k): return f//k**multiplicity(k, f)
def a(n):
f = factorial(n)
m2 = max(d for d in divisors(b(f, 2), generator=True) if ispal(d))
m5 = max(d for d in divisors(b(f, 5), generator=True) if ispal(d))
return f//max(m2, m5)
print([a(n) for n in range(34)]) # Michael S. Branicky, Oct 12 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Amarnath Murthy, Apr 23 2004
EXTENSIONS
Corrected and extended by Jason Earls, May 07 2004
a(0) and more terms from David A. Corneth, Oct 07 2022
STATUS
approved