4.0  Conclusions.

The two methods described in this paper have produced quadratics that generate all the 240 prime numbers between 0 and 1500. By fully exploring the flexibility of the extended Ulam's Spiral, and performing extended searches with the Composite Search method, it is believed that many more could be found. Subsequently this would enable the possibility of finding a pattern, if one exists, which would permit further quadratics to be predicted.

The highest prime number generated to date by a quadratic found in this exercise is 15,319. To extend significantly beyond this would require a much faster computing capability and a much larger Ulam Spiral, probably one that would have to be scrolled. Also, coding in a high level language, to produce a stand alone EXE file would be essential for very large numbers to be handled.

Finally, in the next paper on this subject, the first pattern in these quadratics will be described. This paternation will allow their prediction, rather than the necessity for searching, and will establish sets of "families" of quadratics, which will permit the generation of a possibly limitless number of prime number sequences extending into very high values.



M6 Version 1.0.0
Ó P.G.Bass, December 2011



APPENDIX A.


An Analytical Evaluation of Ulam's Spiral.

An analytical representation is shown in Fig. A.1 below.


Fig. A.1 - Ulam's Spiral, Analytical Representation.

In Fig. A.1 the following parameters are defined as follows:-

(i) P is the Base Number in the Base Cell.

(ii) P+nk are the values in all other Cells.

(iii) k is the Step Size.

(iv) The cells are numbered 1, the Base Cell, to 25 etc around the spiral.

(v) Rn is the Spiral Ring number, R1 contains just the Base Cell, (R1 = 0), R2 contains cells 2 to 9, (R2 = 1), R3 contains cells 10 to 25, (R3 = 2) etc.

(vi) D is the direction value in which successive terms of a quadratic lie. D = - 3 to + 4 for directions A to H, (as in Table 2.1).

(vii)B is the number of spiral boundaries crossed by successive quadratic terms.

(viii) nr is the number of cells counting from the first cell in a ring, to the cell containing the value of interest. Note the first cell in R1 is #1, in R2 it is #9 and in R3 it is #25 etc, as shown in Fig. A.1.

Analysis for a2.

a2 is only affected by k and B. The values of a2, determined from a series of term sequences in the spiral, for a number of values of k and B, are shown in the following table.

kBa2
114
1216
1336
218
2232
2372
3112
3248
33108

Table A.1 - Values of a2 for k and B.

From Table A.1 it is clear that


a2 = 4kB2
(A.1)

Analysis for a1.

a1 is affected by k, B, D, and Rn. The values of a1 for various values of these parameters, determined from the spiral values of quadratic sequences, are shown in Table A.2 below. Rn here is the ring number containing the spiral cell in which the first quadratic term resides.

kBRn Da1 kBRn Da1 kBRn Da1
110A-3 11 1A4 211A10
B-2 B6 B12
C-1 C7 C14
D0 D8 D16
E1 E9 E18
F2 F10 F20
G3 G12 G22
H4 H14 H24
120A-6121A10222A52
B-4 B12 B56
C-2 C14 C60
D0 D16 D64
E2 E18 E68
F4 F20 F72
G6 G22 G76
H8 H24 H80
232F108322D96323A126
G114 E102 B132
H120 F108 C138


Table A.2 - Values of a2 for k, B, Rn and D.

Note that some of these values may vary if the term sequence crosses the Base Number boundary.

Analysis of Table A.2 shows that a1 can be represented by


a1 = ( 8Rn + D )kB
(A.2)

Analysis for a0.

a0 is dependent upon k, P, Rn and nr. Table A.3 below shows the values of a0 for various values of these parameters as determined from the spiral.

kRn nr Pa0
11515
1177
1199
2135
22933
221443
32434
321052
321567


Table A.3 - Values of a0 for k, Rn, nr and P.

Analysis of Table A.3 shows that


a0 = [ 8å n - 1
n = 1
( Rn ) + nr - 1 ]k + P
(A.3)

which via the standard formula for arithmetic series, becomes

a0 = ( 4( Rn-1 )Rn + nr -1 )k+P
(A.4)

Note that (A.4) can be used to determine the value of the contents of any cell in the spiral.

The final equation governing the generation of quadratics from Ulam's Spiral is, by combining (A.1), (A.2) and (A.4)


N = 4kB2x2 +( 8Rn + D )kBx +( 4( Rn - 1 )Rn +nr - 1 )k + P
(A.5)

Thus if k = 0.25, B = 1, Rn = 0, (so that nr = 1), D = 4, (Direction H) and P = 41, (A.4) becomes


N = x2 + x + 41
(A.6)

i.e. Euler's equation.

Similarly if k = 0.5, B = 1, Rn = 0, (so that nr = 1), D = 0, (Direction D) and P = 29, (A.5) becomes


N = 2x2 + 29
(A.7)

Legendre's equation.



M6 Version 1.0.0
Ó P.G.Bass, December 2011

On to the Next Section:- Appendix B

Back to the Introduction to this Paper:- Prime Number Quadratic Generation

Back to the Home Page for this Site:- Home