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

A174840
Least k such that the primes 3 to prime(k+1) form a complete residue system (mod prime(n)).
0
3, 7, 9, 13, 26, 26, 42, 32, 65, 63, 84, 74, 89, 162, 110, 126, 177, 169, 144, 171, 214, 196, 237, 238, 323, 297, 363, 344, 327, 515, 441, 543, 420, 481, 612, 494, 604, 543, 646, 552, 645, 644, 519, 742, 593, 737, 644, 851, 1012, 787, 1204, 727, 899, 800, 1046
OFFSET
1,1
COMMENTS
If the value of the terminal prime is given rather than its index in the list of odd primes, the sequence becomes 7 19 29 43 103 103 191 137 347 311 439
In other words, the odd primes no larger than 7 form a complete residue set mod 3, the odd primes no larger than 19 form a complete residue set mod 5, and so forth
MATHEMATICA
Table[p=Prime[n]; k=1; While[u=Union[Mod[Prime[Range[2, k]], p]]; u != Range[0, p-1], k++ ]; k-1, {n, 2, 100}] (* T. D. Noe, Apr 02 2010 *)
CROSSREFS
Sequence in context: A018663 A110575 A325556 * A032664 A166733 A172987
KEYWORD
nonn
AUTHOR
Keith Backman, Mar 30 2010
EXTENSIONS
Name improved by T. D. Noe, Apr 05 2010
Corrected and extended by T. D. Noe, Apr 02 2010
STATUS
approved