OFFSET
4,1
LINKS
Eric Weisstein's World of Mathematics, Alladi-Grinstead Constant
EXAMPLE
6! = 2*2*2*2*5*9 = 2*2*3*3*4*5, the smallest terms of which are 2 and 2, so a(6)=Max[2,2]=2.
PROG
(PARI) works(n, m) = local(f, s, l, p, x); f = factor(n!); s = 0; l = matsize(f)[1]; for (i = 1, l, p = f[i, 1]; x = 1; while (p^x < m, x++); s += f[i, 2]\x; if (f[i, 2] < x, return(0))); s >= n; a(n) = local(f, m); f = factor(n); m = 2; while (works(n, m), m++); m - 1 \\ David Wasserman, Jan 31 2005
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric W. Weisstein, Jun 23 2003
EXTENSIONS
More terms from David Wasserman, Jan 31 2005
STATUS
approved