OFFSET
3,2
COMMENTS
Semiprime analog of A033933. After n = 3, a(n) is never again 0.
FORMULA
a(n) = Min_{k such that n!-k is in A001358 and k>=0}.
EXAMPLE
a(3) = 0 because 3! - 0 = 6 - 0 = 6 = 2 * 3.
a(4) = 2 because 4! - 2 = 24 - 2 = 22 = 2 * 11.
a(5) = 1 because 5! - 1 = 119 = 7 * 17.
CROSSREFS
KEYWORD
nonn
AUTHOR
Jonathan Vos Post, Sep 24 2007
EXTENSIONS
More terms from Jinyuan Wang, Aug 28 2022
STATUS
approved