cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

User: David L. Harden

David L. Harden's wiki page.

David L. Harden has authored 8 sequences.

A301587 Positive integers m such that whenever n is in the range of the Euler totient function, so is m*n.

Original entry on oeis.org

1, 2, 4, 6, 8, 12, 16, 18, 20, 24
Offset: 1

Author

David L. Harden, Mar 24 2018

Keywords

Comments

Closure under multiplication: if multiplication by m_1 carries totient values to totient values and multiplication by m_2 does also, then so does their composition, which is multiplication by m_1*m_2.
No odd terms are in the sequence except for 1.
32, 36, 40, 42, 48, 54, 64, and 72 are also in this sequence, although determining their position is difficult. - Charlie Neder, Aug 04 2019
From Jianing Song, Dec 12 2021: (Start)
Conjecture: defining this sequence as "positive integers m such that whenever n > 1 is in the range of the Euler totient function, so is m*n" would give the same terms. That is to say, it seems that if m is a nontotient number, then there exists a totient number n > 1 such that m*n is a nontotient.
The known primitive terms of this sequence (terms that are not products of two previous terms) are 1, 2, 6, 18, 20. More terms are needed to determine the primitive terms further. (End)

Examples

			1 is trivially in the sequence.
Note that any value assumed by phi is assumed at an even argument, since k odd implies phi(k) = phi(2k).
Then 2 is in the sequence, since n = phi(k) and k even imply that 2n = phi(2k).
3 is not in the sequence: 30 = phi(31), but 3*30 = 90 is not in the range of phi.
4 is in the sequence because 2 is (using closure under multiplication).
5 is not in the sequence: 18 = phi(19), but 5*18 = 90 is not in the range of phi.
6 is in the sequence: If n = phi(k) with k even, phi(9k) = 6n if k is a nonmultiple of 3. If k is a multiple of 3, then 6n = phi(6k) since k is a multiple of 6.
7 is not in the sequence: 22 = phi(23), but 7*22 = 154 is not in the range of phi.
8 is in the sequence because 2 is.
		

Crossrefs

A220470 Smallest order of a group with an irreducible complex representation of dimension n.

Original entry on oeis.org

1, 6, 12, 20, 55, 42, 56, 72, 144, 110, 253, 156, 351, 336, 240, 272, 1751, 342, 3420, 500, 672, 506, 1081, 600, 2525, 702, 1512, 812, 1711, 930, 992, 1440
Offset: 1

Author

David L. Harden, Apr 10 2013

Keywords

Comments

a(1) = 1 because the trivial group works.
If n > 1, then let G_n be a group of minimal order which has an irreducible complex representation of dimension n.
Since G_n has the n-dimensional and trivial representations, a_n = |G_n| >= n^2 + 1.
Since n divides the order of any finite group with an irreducible complex representation of dimension n, n divides a_n and this allows us to strengthen the lower bound to a_n >= n^2 + n.
An upper bound is given by a_n <= n*q_n, where q_n is the smallest positive integer which is a power of a prime and which is congruent to 1 mod n. This is because the group of affine transformations x --> a*x + b (from the finite field F_(q_n) to itself), where a^n = 1 and b is an arbitrary element of F_(q_n), has order n*q_n and an irreducible complex representation of dimension n.
The upper bound and the lower bound coincide if and only if (n > 1 and) n+1 is a power of a prime. This means that, for any such n, a(n) = n^2 + n.
Upper bound is n*A224503(n), for n > 1.
This function is sub-multiplicative: a(m*n) <= a(m)*a(n) because (any) G_m x G_n has an irreducible complex representation of dimension m*n.

Examples

			For n=5, the lower bound is a(5) >= 30, while the upper bound is a(5) <= 55.
So one only needs to prove that no group of order 30, 35, 40, 45, or 50 has an irreducible complex representation of dimension 5.
All groups of order 35 and 45 are Abelian, so all their irreducible complex representations have dimension 1.
For orders 30, 40, and 50, recall that the dimension of an irreducible complex representation is bounded from above by the index of an Abelian subgroup.
A group of order 50 has an Abelian subgroup of index 2.
A group of order 40 has a normal Sylow 5-subgroup P, which must be centralized by an element t of order 2 in a Sylow 2-subgroup. Then <P,t> is a cyclic subgroup of index 4.
A group of order 30 has a cyclic subgroup of index 2.
All these indices are too low to allow such a group to have an irreducible complex representation of dimension 5, and the a(5) = 55 result is proved.
Comments from Gabriele Nebe (Lehrstuhl D für Mathematik, RWTH Aachen), added by _N. J. A. Sloane_, Apr 13 2013; extended by _David L. Harden_, Nov 08 2017: (Start)
The following are examples of groups that realize the given values of a(n).
1=C_1, 6=S_3, 12=A_4, 20=C_5:C_4, 55=C_11:C_5, 42=C_7:C_6, 56=(C_2xC_2xC_2):C_7, 72=C_3xC_3:(some regular subgroup of L_2(3) on 8 points), 144=A_4xA_4, 110 = C_11:C_10, 253=C_23:C_11, 156=C_13:C_12, 351=(C_3xC_3xC_3):C_13, 336 = (C_2xC_2xC_2):C_7 x S_3, 240 = (C_2xC_2xC_2xC_2):C_15, 272 = C_17:C_16, 1751 = C_103:C_17, 342 = C_19:C_18, 3420 = PSL_2(19).
If one has a small cyclic group of order p where phi(p) is a multiple of n, then take C_p:C_n. For other n it is reasonable to take elementary abelian groups of order n+1 that admit a subgroup of their automorphism group acting regularly on the n nontrivial characters. (End)
		

References

  • Marshall Hall, Jr., Theory of Groups, AMS Chelsea Publishing, 1999 reprinting, pp. 136-138.
  • I. Martin Isaacs, Finite Group Theory, AMS, 2008, p. 35.
  • Gordon James and Martin Liebeck, Representations and Characters of Groups, Cambridge University Press, 1995 reprinting, pp. 217-218.

Crossrefs

Cf. A224503.

Extensions

a(17)-a(18) from David L. Harden, Nov 08 2017
a(19) from David L. Harden, Dec 08 2017
a(20)-a(31) from Bob Heffernan, Jul 06 2018
a(32) from Bob Heffernan, Nov 15 2019

A130751 Numbers n such that for all finite groups G and all primes p, the number of Sylow p-subgroups of G does not equal n.

Original entry on oeis.org

2, 22, 34, 46, 56, 58, 86, 88, 92, 94, 106, 116, 118, 134, 142, 146, 154, 162, 166, 178, 184, 188, 202, 204, 206, 210, 214, 218
Offset: 1

Author

David L. Harden, Jul 13 2007, Aug 11 2007

Keywords

Comments

(i) If n is an odd positive integer, then the number of Sylow 2-subgroups of the dihedral group of order 2n is n. Therefore all terms of this sequence are even.
(ii) Let p be a prime and let q be a power of p. The number of Sylow p-subgroups of PGL(2,q) is q+1.
(iii) Let q be a power of a prime and let r be a prime factor of q-1. Then the group of all affine transformations from the finite field F_q to itself has exactly q Sylow r-subgroups. This implies that q is a nonmember of the sequence, as long as q-1 has prime factors. Thus it works for all q except 2. (iv) The Third Sylow Theorem: If G is a finite group and p is a prime factor of |G|, then the number of Sylow p-subgroups of G is congruent to 1 mod p. 2 is in the sequence, since 2 is not congruent to 1 modulo any primes. It is never again this easy. Therefore we need an easier equivalent form of the membership criterion:
Easier Test. n > 2 is in this sequence iff the symmetric group S_n lacks a transitive subgroup with exactly n Sylow p-subgroups.
Proof. If S_n has a transitive subgroup with exactly n Sylow p-subgroups, then n trivially is a nonmember of this sequence.
For the other direction, suppose that G has exactly n Sylow p-subgroups. Then we will show that S_n has a transitive subgroup with exactly n Sylow p-subgroups. Let P be a Sylow p-subgroup of G and let N be its normalizer in G. Let G act on its Sylow p-subgroups by conjugation. This gives a homomorphism phi: G --> S_n. We want to show that phi(G) is also a group with exactly n Sylow p-subgroups. It is transitive by the Second Sylow Theorem.
First, phi(P) is a nontrivial subgroup of G: By properties of Sylow subgroups, P normalizes none of the other Sylow p-subgroups of G. Therefore phi(P) is a p-subgroup of G. Also, [phi(G):phi(P)] divides [G:P], which is a nonmultiple of p. Therefore phi(P) is a Sylow p-subgroup of phi(G). Since N normalizes P, phi(N) normalizes phi(P). Finally, nothing outside phi(N) can normalize phi(P), by the definition of phi.
Likewise phi(N) is a point-stabilizer in phi(G). Since phi(G) is a transitive subgroup of S_n, the index of phi(N) in phi(G) is n. Since phi(N) is the normalizer of phi(P) in phi(G), this means the number of Sylow p-subgroups of phi(G) is n and we are done.
We continue the notation used above with G, N and P in what follows. (For these comments, isolated examples are given that show different variations on the reasoning used to prove membership in this sequence.)
22 is in the sequence: If G is a finite group with exactly 22 Sylow p-subgroups, then p= 3 or 7. (Since there is no need to divide into cases based on the value of p, in what follows p= 3 or 7.) 22 has no proper divisors congruent to 1 mod p, so N is a maximal subgroup of G. Then the Easier Test can be strengthened to say "primitive" where it says "transitive". There are only 4 nonisomorphic primitive subgroups of S_22: M_22, Aut(M_22), A_22 and S_22. All of these have more than 22 Sylow p-subgroups.
34 is in the sequence: If G is a finite group with exactly 34 Sylow p-subgroups, then p= 3 or 11. 34 has no proper divisors congruent to 1 mod p and (proceeding as before) the only primitive subgroups of S_34 are S_34 and A_34. Both have more than 34 Sylow p-subgroups.
88 is a member: the only primitive permutation groups of degree 88 are S_88 and A_88. Neither of these has exactly 88 Sylow 29-subgroups and 88 has no proper divisors congruent to 1 mod 29. The divisors of 88 congruent to 1 mod 3 are 1, 4, 22 and 88. Then a minimal extension K of a Sylow 3-subgroup normalizer N must have [K:N]=4 (22 was already ruled out, as was 88 by the fact that S_88 and A_88 have more than 88 Sylow 3-subgroups). K will be maximal in G and have [G:K]=22. All of M_22, Aut(M_22), A_22 or S_22 have more than 88 Sylow 3-subgroups and G itself will have at least as many.

Examples

			120 is not a term in this sequence because 120 is the number of Sylow 7-subgroups of the symmetric group S_7 (or the alternating group A_7).
4 is not a term in this sequence because 4 is the number of Sylow 3-subgroups of the alternating group A_4 (or the symmetric group S_4).
		

References

  • B. Sambale, Pseudo-Sylow numbers, Amer. Math. Monthly 126 (2019), 60-65; DOI: 10.1080/00029890.2019.1528825.

A104109 Numbers n such that whenever a group G has a solvable subgroup of index n, then G itself is solvable.

Original entry on oeis.org

1, 2, 3, 4, 11, 19, 22, 23, 29, 31, 37, 41, 43, 46, 47, 53, 57, 58, 59, 61, 67, 69, 71, 73, 79, 83, 86, 87, 89, 92, 93, 94, 97, 101, 103, 106, 107, 109, 111, 113, 116, 118
Offset: 1

Author

David L. Harden, Mar 04 2005

Keywords

Comments

The way the sequence is defined, it is not obvious that it is computable.
The following condition is obviously computable and equivalent to the criterion for membership in this sequence: n is in the sequence iff it is true that a transitive subgroup of the symmetric group S_n is solvable iff it has a solvable point stabilizer.
As for the primes in the sequence, a theorem proved by Burnside guarantees that any unsolvable permutation group on a prime number of points is doubly transitive. The classification of doubly transitive permutation groups has been completed and it can be used to show that the only primes not in this sequence are 7, 13 and the Fermat primes larger than 3. So assuming the standard conjecture that 65537 is the largest Fermat prime, all primes except for these six (5, 7, 13, 17, 257 and 65537) are in this sequence.
If q (not equal to 2 or 3) is a power of a prime, then q+1 is not in this sequence, since PGL(2,q) is an unsolvable group with a solvable subgroup of index q+1 (isomorphic to the general affine group GA(1,q)).
Finally, if n is a nonmember of this sequence, then so is any multiple of n:
Since n is a nonmember of this sequence, there is a group G such that G is unsolvable and G has a solvable subgroup H of index n. Suppose N=d*n is a multiple of n. Then G x C_d (here C_d denotes a cyclic group of order d) is a group which is unsolvable because G is unsolvable. Nevertheless, it has a subgroup of index N isomorphic to H, which is solvable: this is the H x 1 subgroup.
This also means that any divisor of a member of this sequence is in this sequence and this form of the above-proved property is useful in proving membership in the sequence. One nice application of this form of that property is the following:
If n is insipid (that is, n is in A102842) and n/p is in this sequence for all primes p dividing n, then n is in this sequence.
Proof. Since n is insipid, n=1,2,3 or 4 or n>=34. If n=1,2,3 or 4, this is trivial since all of those values of n are in this sequence.
If n>=34, then let G be a group and let H be a solvable subgroup of index n in G.
Claim. H is not maximal in G.
Proof of Claim. Suppose H is maximal in G. Then let N be the core of H in G. G/N is isomorphic to a primitive permutation group on n points. Since n is insipid, this means G/N ~= A_n or S_n. Then restricting the quotient map (the map from G to G/N) to H yields a surjective homomorphism from H to a point stabilizer in S_n or A_n. This point stabilizer is isomorphic to S_(n-1) or A_(n-1). Since n>=34, n-1 >= 33 >= 5 so this image of H under this homomorphism is unsolvable and therefore H is unsolvable for a contradiction. The Claim is proved.
Since H is not maximal in G, there is a subgroup K of G such that G is properly contained in G and properly contains H. Then, by Lagrange's Theorem, [G:K] and [K:H] are proper divisors of n. This means there are (not necessarily distinct) prime factors p,q of n such that [G:K] | n/p and [K:H] | n/q. By our assumption, n/p and n/q are in this sequence. Then the property proved earlier implies that [G:K] and [K:H] are in this sequence. This means that the solvability of H implies the solvability of K, which, in turn, implies the solvability of G and the membership of n in this sequence. The proof is now complete.

Examples

			22 is in this sequence, since the only primitive permutation groups on 22 points are M_22, Aut(M_22), A_22 and S_22. All of these have unsolvable point stabilizers.
This shows that a counterexample to 22 being in the sequence will be (by basic properties of the action-on-cosets homomorphism) an unsolvable group G with a solvable _nonmaximal_ subgroup H of index 22. Since H is nonmaximal, there is a subgroup K lying properly between G and H. Then by Lagrange's Theorem, we know [G:K]=2 and [K:H]=11 or vice versa. In either case, since 2 and 11 are both in this sequence, the solvability of H implies the solvability of K which implies the solvability of G. Thus 22 is in the sequence.
		

Crossrefs

A102842 Insipid numbers: n is defined to be insipid if "G is a primitive subgroup of the symmetric group S_n" implies that "G=A_n or G=S_n".

Original entry on oeis.org

1, 2, 3, 4, 34, 39, 46, 51, 58, 69, 70, 75, 76, 86, 87, 88, 92, 93, 94, 95, 96, 99, 106, 111, 115, 116, 118, 123, 124, 134, 141, 142, 143, 145, 146, 147, 148, 154, 159, 160, 161, 166, 172, 177, 178, 184, 185, 187, 188, 189, 195, 201, 202, 204, 205, 206, 207, 209
Offset: 1

Author

David L. Harden, Feb 27 2005

Keywords

Comments

A few basic properties: No prime p > 3 is in this sequence, since the subgroup of S_p generated by any p-cycle is primitive (and too small to be A_p or S_p when p>3).
It seems hard to find long gaps in this sequence. It seems plausible (this is implied by some conjectures in number theory) that there are infinitely many strings of 5 consecutive positive integers not in this sequence; however, I do not know of a construction which should yield infinitely many strings of 6 consecutive positive integers which are in the sequence (this may be just a reflection of my ignorance of the right families of finite groups); the largest example I know of a string of more than 5 consecutive integers not in this sequence has length 7 and first term 2^150-5.
If q is a power of a prime and d > 1 is a positive integer (except in the cases where d=2 and q <= 4, in which this construction yields symmetric or alternating groups), then (q^d-1)/(q-1) is not insipid for the following reason:
The group PGL(d,q) acts doubly transitively (and therefore primitively) on the (q^d-1)/(q-1) 1-dimensional subspaces of a d-dimensional vector space over the finite field of order q. In particular, when d=2, this number is q+1 and this is why each power of a prime (including the primes themselves) prevents the next positive integer from being insipid, in addition to being noninsipid itself. This is why the explanation for why 38 is noninsipid just said that 38=37+1.
The Magma code generates the insipid numbers <= U, with the exceptions of 1 and 2. Since I do not know Magma well enough to judge this for myself, it is possible that U has to be a constant (and not just another program variable) for this code to work properly.
This is the set of n such that n = 1 or 2 and A000019(n)=2.
The link gives all the insipid numbers < 1000, except for 1 and 2. - David L. Harden, Aug 15 2007
There are infinitely many insipid numbers. In fact, they are of density 1, because P. J. Cameron, P. M. Neumann and D. N. Teague proved that the number of non-insipid numbers less than n grows like 2n/log(n). - Sébastien Palcoux, Jul 23 2019

Examples

			39 is the next term after 34 because it is possible to construct primitive nonnormal subgroups of S_n for n=35,36,37 and 38:
35: 35=(7 3) and 3 < 7/2 so S_7 acts primitively on 35 points because S_7 has maximal subgroups isomorphic to S_3 x S_4.
36: 36=(9 2) and 2 < 9/2 so S_9 acts primitively on 36 points because S_9 has maximal subgroups isomorphic to S_2 x S_7.
37: 37 is prime.
38: 38=37+1.
		

References

  • J. Dixon and B. Mortimer: Permutation groups. Springer 1996, 360pp.

Crossrefs

Cf. A000019.

Programs

  • Magma
    [n : n in [1..U] | NumberOfPrimitiveGroups(n) eq 2];

A104114 The order of the smallest solvable group with derived length n.

Original entry on oeis.org

1, 2, 6, 24, 48, 432, 1296, 82944, 165888, 1088391168, 3265173504
Offset: 0

Author

David L. Harden, Mar 31 2005

Keywords

Comments

At order 24, the two groups which achieve the maximum derived length are S_4 and SL(2,3). At order 48, a group which achieves the maximum derived length is GL(2,3). At order 432, the only group which achieves the maximum derived length is 3^2:GL(2,3).
There are three groups of order 1296 achieving maximal derived length. - Charles R Greathouse IV, May 26 2014

Examples

			a_2=6 because the smallest solvable group with derived length 2 is the symmetric group S_3, which has order 6.
		

Programs

  • GAP
    a := function(arg)
        local n, size, gr;
        n := arg[1];
        if Length(arg) > 1 then
            size := arg[2];
        else
            size := 1;
        fi;
        gr := OneSmallGroup(Size, size, DerivedLength, n);
        if gr <> fail then
            return size;
        else
            return a(n, size + 1);
        fi;
    end;  # Charles R Greathouse IV, May 23 2014

Formula

a(n) >= 2*a(n-1). - Charles R Greathouse IV, May 26 2014

Extensions

a(6) from Charles R Greathouse IV, May 26 2014
a(7)-a(10) from Des MacHale, Jun 26 2025

A099732 Largest order of a solvable subgroup of the symmetric group S_n.

Original entry on oeis.org

1, 2, 6, 24, 24, 72, 144, 1152, 1296, 2304, 6912, 82944, 82944, 165888, 497664, 7962624, 15925248, 47775744, 191102976, 191102976, 573308928, 1146617856, 13759414272, 13759414272, 27518828544, 82556485632
Offset: 1

Author

David L. Harden, Nov 08 2004

Keywords

Comments

The Maple code uses a recurrence for this function.
Here is a faster algorithm for computing members of this sequence. Input: a positive integer, n.
Step 1. Write n in base 4. This yields a string of digits. Each digit is 0, 1, 2 or 3.
Step 2. Make a pass through the string and replace every occurrence of "12" with "6". Now the string is a string of 0's, 1's, 2s, 3s and 6s.
Step 3. Make a pass through the string and replace every occurrence of "21" by "9". Now the string is a string of 0's, 1's, 2s 3s, 6s and 9s.
Step 4. Add the digits of the string. Call this sum S.
Step 5. Compute the product of f(d) over all digits d of the string, where f(0)=1 and f(d)= A099732(d) for d>0. As a table, these values are f(0)=1, f(1)=1, f(2)=2, f(3)=6, f(6)=72 and f(9)=1296. Call this product P.
Step 6. A099732(n)= P * 24^((n-S)/3).
Examples. n=412089:
Step 1. n = 1210212321 in base 4. Step 2. The new string is 61062321. Step 3. The new string is 6106239. Step 4. S = 6+1+0+6+2+3+9= 27. Step 5. P = 72*1*1*72*2*6*1296=80621568. Step 6. A099732(412089)=80621568 * 24^((412089-27)/3) = 80621568 * 24^(412062/3) = 80621568 * 24^137354.
n=25: Step 1. n=121 in base 4. Step 2. The new string is 61. Step 3. The new string is still 61, since there are no "21"s in 61. Step 4. S= 6+1 =7. Step 5. P= 72*1 = 72. Step 6. A099732(25) = 72 * 24^((25-7)/3) = 72 * 24^6.
n=37: Step 1. n=211 in base 4. Step 2. The new string is still 211, since there are no "12"s in "211". Step 3. The new string is 91. Step 4. S= 9+1 = 10. Step 5. P= 1296*1 = 1296. Step 6. A099732(37) = 1296 * 24^((37-10)/3) = 1296 * 24^9.
It is important that Step 2 be done before Step 3; indeed, proving that doing any of Step 3 before all of Step 2 is accomplished cannot result in a larger value (though it can result in a smaller value, or the same value if there are no "12"-"21" conflicts) is part of the proof of the correctness of this algorithm.

Examples

			a(n) = n! for n<=4 because for those values of n, S_n is solvable and is therefore its own largest solvable subgroup.
a(7)=144 because the largest solvable subgroups of S_7 are the intransitive ones which are isomorphic to S_4*S_3.
		

References

  • J. Dixon and B. Mortimer: Permutation groups. Springer 1996, 360p. 3-540-94599-7. DM 84.

Crossrefs

Cf. A000792.

Programs

  • Maple
    largsolv := proc(n :: posint) local valtable,curmax,i,j,k,g; valtable:=Array(1..n); if n<=4 return factorial(n); end if; for i from 1 to 4 do valtable[i]:=factorial(i); end do; for j from 5 to n do curmax:=1; for i from 1 to floor(j/2) do curmax:=max(curmax,valtable[i]*valtable[j-i]) end do; for k from 2 to tau(j)-1 do g:=divisors(j)[k]; curmax:=max(curmax,valtable[g]^(j/g)*valtable[j/g]); end do; valtable[j]:=curmax; end do; return valtable[n]; end proc;

Formula

a(n) <= 24^((n-1)/3). Equality holds iff n is a power of 4.

A102295 Odd primes which set records for smallest absolute value of a quadratic nonresidue.

Original entry on oeis.org

3, 5, 17, 73, 241, 1009, 2689, 8089, 33049, 53881, 87481, 483289, 515761, 1083289, 3818929, 9257329, 22000801, 48473881, 175244281, 427733329, 898716289, 8114538721, 9176747449, 23616331489
Offset: 1

Author

David L. Harden, Feb 19 2005

Keywords

Comments

It is strange that each term of this sequence has, among its quadratic residues, only one more of -1,2,3,5,7,11... and thus gets into the sequence by 'doing the bare minimum' and not having the next term of that sequence as a quadratic residue also. For example, the quadratic residues modulo 73 include -1, 2 and 3 but not 5. With 241, 5 is a quadratic residue but 7 is not. With 1009, 7 is but 11 is not. This should stop at some point, but my computations haven't reached there yet (they have not been assisted electronically).
If someone wants to code up a program to compute members of this sequence quickly, one should strike a balance (if not using a totally different or much smarter approach) between using the sieve you can get by using the law of quadratic reciprocity (and the (-1/p) and (2/p) theorems) and using brute force to find primes with the right quadratic residues by chance.
For example, there are 2*3*5*6*8*9*11*14=1995840 residue classes modulo 8*3*5*7*11*13*17*19*23*29 containing odd primes with -1 and the primes up to 29 as quadratic residues. Simply enumerating these is significant work for a computer.
On the other hand, generating a smaller list of residue classes (for example, the 12960 residue classes modulo 8*3*5*7*11*13*17*19 which contain odd primes having -1 and the primes up to 19 as quadratic residues) and then leaving to chance (and brute force) the primality of p and that (23/p)=(29/p)=1 should be a more intelligent way to search for the smallest odd prime having -1 and the primes up to 29 as quadratic residues than using a complete sieve as described earlier. I am labeling this sequence as "hard" because extending it should become hard (exponentially hard, since each term should take roughly twice as much computation as the previous one) once the terms get to something around 20 digits.
I have now written a computer program to help me find members of this sequence. Among these, the term 3818929 is interesting because it is the first break in a pattern established by the previous terms, wherein the smallest prime p such that -1 and the primes up to the k-th prime are quadratic residues modulo p has the (k+1)st prime as a quadratic nonresidue. 3818929 is the smallest p to have -1 and the primes <= 41 as quadratic residues but it also has 43 (but not 47) as a quadratic residue. - David L. Harden, May 21 2005
This is A002224 with duplicates removed and 3 and 5 tacked on to the beginning. The remark about term 3818929 follows from the fact that it is the first duplicate in A002224.

Examples

			3 is the smallest odd prime. The smallest absolute value of a quadratic nonresidue modulo 3 is 1, since (-1/3)=-1.
17 is the smallest odd prime to have -1 and 2 as quadratic residues.
2689 is the smallest odd prime to have -1, 2, 3, 5, 7 and 11 as quadratic residues.
		

Extensions

More terms from David L. Harden, May 21 2005
More terms copied from A002224 by Max Alekseyev, May 21 2016