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”).

A089884
a(n) = Max(Min(k: m+prime(n)*k is prime): 1<=m<prime(n)).
0
1, 2, 3, 4, 6, 7, 6, 10, 10, 10, 18, 11, 14, 10, 20, 12, 12, 24, 15, 18, 24, 16, 20, 22, 15, 21, 19, 22, 21, 19, 29, 23, 28, 34, 23, 29, 22, 27, 23, 27, 30, 26, 25, 36, 28, 24, 30, 21, 28, 40, 25, 40, 24, 27, 24, 34, 29, 27, 28, 29, 46, 29, 38, 34, 37, 38, 31, 51, 39, 46, 37
OFFSET
1,2
EXAMPLE
n=4, prime(4)=7, a(4)=4 as: 1->8->15->22->29, 2->9->16->23,
3->10->17, 4->11, 5->12->19, 6->13.
CROSSREFS
Sequence in context: A072659 A072766 A071652 * A172312 A086163 A175059
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jan 10 2004
STATUS
approved