OFFSET
1,1
COMMENTS
It is conjectured that a(2n) = n.
The largest k such that (n!-k)/(n-k) is an integer is n!
a(2n+1) <= 2n for all n >= 1.
Does a(n) = A060681(n) for n>1? - Michel Marcus, Oct 24 2015
EXAMPLE
6-1 is not divisible by 6!-1, 6-2 is not divisible by 6!-2, but 6-3 is divisible by 6!-3. So a(6) = 3.
PROG
(PARI) a(n)=for(k=1, n!, if(k!=n, s = (n!-k)/(n-k); if(floor(s)==s, return(k)); ));
n=1; while(n<100, print(a(n)); n+=1) \\ corrected by Michel Marcus, Oct 24 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, May 21 2014
STATUS
approved