login
A092915
a(n) = largest k such that n divides (n-1)!/k!, or 0 if no such k exists (i.e., if n is prime).
2
2, 0, 3, 2, 4, 0, 7, 0, 6, 9, 9, 0, 11, 0, 14, 13, 10, 0, 19, 14, 12, 17, 20, 0, 24, 0, 23, 21, 16, 27, 29, 0, 18, 25, 34, 0, 34, 0, 32, 38, 22, 0, 41, 34, 39, 33, 38, 0, 44, 43, 48, 37, 28, 0, 54, 0, 30, 55, 55, 51, 54, 0, 50, 45, 62, 0, 65, 0, 36, 64, 56, 65, 64, 0, 73, 71, 40, 0, 76
OFFSET
6,1
COMMENTS
Value of k in A092914, or 0 if n is prime.
EXAMPLE
a(9) = 2 as 9 divides 8!/2! but 9 does not divide 8!/3!.
18 divides 17!/11! = 8910720 but 18 does not divide 17!/12!, so a(18) = 11.
PROG
(PARI) m=85; for(n=6, m, k=1; while(((n-1)!/k!)%n==0, k++); print1(k-1, ", "))
CROSSREFS
Sequence in context: A232343 A140944 A057860 * A063749 A231333 A357866
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Mar 16 2004
EXTENSIONS
Edited, corrected and extended by Klaus Brockhaus, Mar 17 2004
STATUS
approved