OFFSET
0,1
EXAMPLE
a(0) = 2; a(1) = 2 from {2,3} with a single difference 1; a(2) = 2 from {2,3,5}, with two distinct differences 1, 2.
a(5) = p_30 = 113 because 113 is followed by 127, 131, 137, 139, 149, with 5 different differences: 14, 4, 6, 2, 10; and no smaller prime has this property.
MATHEMATICA
f[k_, n_] := Block[{p = Table[ Prime[i], {i, k, k + n - 1}]}, Length[ Union[Drop[p, 1] - Drop[p, -1]]]]; k = 1; Do[ While[ f[k, n] != n - 1, k++ ]; Print[ Prime[k]], {n, 1, 22}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jan 03 2002
EXTENSIONS
Edited by Robert G. Wilson v and N. J. A. Sloane, Jan 05 2002
More terms from Don Reble, Jan 15 2003
a(27)-a(30) from Donovan Johnson, Oct 23 2012
STATUS
approved