[go: up one dir, main page]

login
A285124 revision #2

A285124
Min(|d(k+1-i) - d(i)|, for i = 1..k, where d(1),..,d(k) are the divisors of prime(n) + 1.
1
2, 0, 1, 2, 1, 5, 3, 1, 2, 1, 4, 17, 1, 7, 2, 3, 4, 29, 13, 1, 35, 2, 5, 1, 7, 11, 5, 3, 1, 13, 8, 1, 17, 4, 5, 11, 77, 37, 2, 23, 3, 1, 4, 95, 7, 10, 49, 2, 7, 13, 5, 1, 11, 4, 37, 10, 3, 1, 137, 41, 67, 7, 8, 11, 155, 47, 79, 13, 17, 11, 53, 2, 7, 5, 1, 8
OFFSET
1,1
LINKS
EXAMPLE
prime(6) + 1 = 14 has divisors 1,2,7,14, so that k=4 and d(k+1-i) - d(i) ranges through {--13,-5,5,13}, so that a(6) = 5.
MATHEMATICA
f[n_] := f[n] = Prime[n]+1;
Table[Divisors[f[n]] - Reverse[Divisors[f[n]]], {n, 1, 10}]
Table[Min[Abs[Divisors[f[n]] - Reverse[Divisors[f[n]]]]], {n, 1, 100}]
CROSSREFS
Sequence in context: A109248 A131866 A036862 * A094238 A127793 A127771
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Apr 11 2017
STATUS
editing