login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A131057 Least nonnegative k such that n!-k is semiprime. 0
0, 2, 1, 2, 7, 1, 2, 1, 5, 3, 1, 19, 11, 1, 19, 19, 11, 1, 19, 23, 1, 1, 47, 1, 1, 29, 3, 29, 2, 59, 73, 1, 43, 1, 13, 17, 41, 1, 2, 5, 3, 53, 79, 7, 1, 53, 23, 1 (list; graph; refs; listen; history; internal format)
OFFSET

3,2

COMMENTS

Semiprime analogue 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

Cf. A001358, A033933.

Sequence in context: A000139 A114572 A052621 * A051852 A054495 A007966

Adjacent sequences:  A131054 A131055 A131056 * A131058 A131059 A131060

KEYWORD

easy,nonn

AUTHOR

Jonathan Vos Post (jvospost3(AT)gmail.com), Sep 24 2007

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 22:55 EST 2012. Contains 205685 sequences.