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

A076606
Min { largest prime factor of n-1, largest prime factor of n+1 }.
0
2, 3, 2, 5, 2, 3, 2, 3, 3, 11, 3, 5, 2, 5, 2, 17, 3, 7, 5, 7, 3, 5, 3, 3, 7, 3, 5, 29, 2, 11, 2, 7, 3, 7, 3, 13, 5, 13, 5, 41, 7, 5, 11, 5, 3, 7, 3, 7, 5, 17, 3, 11, 3, 11, 7, 19, 5, 59, 5, 7, 2, 7, 2, 13, 11, 23, 7, 23, 3, 71, 3, 5, 19, 5, 13, 11, 5, 3, 5, 3, 7, 17, 7, 17, 11, 29, 5, 13, 5, 13
OFFSET
3,1
EXAMPLE
a[11]=3, as 3 is the smallest prime factor from 10=2.5 and 12=2.2.3
PROG
(PARI) for (n=3, 100, print1(", "min(factor(n-1)[, 1][length(factor(n-1)[, 1])], factor(n+1)[, 1][length(factor(n+1)[, 1])])))
CROSSREFS
Sequence in context: A262597 A217607 A066727 * A056927 A094290 A265111
KEYWORD
nonn
AUTHOR
Jon Perry, Oct 21 2002
STATUS
approved