login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A056697
a(n) is least N > 1 congruent to -1,0, or 1 mod i for all i=1,...,n.
5
2, 2, 2, 3, 4, 5, 29, 41, 55, 71, 791, 791, 1079, 1079, 1079, 30239, 246960, 246960, 636481, 636481, 1360800, 2162161, 2162161, 2162161, 39412801, 39412801, 107881201, 107881201, 3625549201, 3625549201, 3625549201, 170918748000, 170918748000, 170918748000, 170918748000, 170918748000, 2355997644001
OFFSET
1,1
FORMULA
Since n! - 1 == -1 (mod i) for all i = 1..n, a(n) <= n! - 1 for n > 2. - N. J. A. Sloane, Dec 30 2012
EXAMPLE
a(9) = 55 because 55 gives remainder -1 when divided by 2,4,7 and 8, gives remainder 0 when divided by (1 and) 5, and gives remainder 1 when divided by 3,6 and 9. All smaller integers greater than 1 give remainders other than -1, 0, or 1 for at least one of 5,6,7,8, or 9.
CROSSREFS
One version of an inverse function to A187824. For another version see A220890. See also A220891. - N. J. A. Sloane, Dec 30 2012
Sequence in context: A022865 A373785 A089150 * A132427 A176975 A333374
KEYWORD
nonn
AUTHOR
Ted Alper, Aug 10 2000
EXTENSIONS
More terms from Don Reble, Dec 30 2012
STATUS
approved