[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
Revision History for A222595 (Underlined text is an addition; strikethrough text is a deletion.)

Showing all changes.
A222595 Number of different Gaussian primes in the Gaussian prime spiral beginning at the n-th first-quadrant Gaussian prime (A222593).
(history; published version)
#3 by T. D. Noe at Wed Feb 27 16:23:53 EST 2013
STATUS

editing

approved

#2 by T. D. Noe at Wed Feb 27 16:23:26 EST 2013
NAME

allocated for T. D. Noe

Number of different Gaussian primes in the Gaussian prime spiral beginning at the n-th first-quadrant Gaussian prime (A222593).

DATA

4, 24, 24, 4, 8, 22, 22, 8, 4, 8, 4, 22, 8, 4, 10, 92, 4, 92, 10, 10, 22, 22, 10, 22, 22, 4, 172, 10, 10, 92, 10, 10, 92, 92, 4, 10, 4, 10, 172, 4, 4, 10, 172, 92, 10, 172, 172, 4, 4, 172, 172, 172, 92, 10, 92, 28, 172, 4, 12, 92, 10, 10, 172, 92, 4, 12, 172, 28

OFFSET

1,1

COMMENTS

This is the idea of A222299 extended to first-quadrant Gaussian primes. The first odd number is a(79) = 29.

REFERENCES

Joseph O'Rourke and Stan Wagon, Gaussian prime spirals, Mathematics Magazine, vol. 86, no. 1 (2013), p. 14.

LINKS

T. D. Noe, <a href="/A222595/b222595.txt">Table of n, a(n) for n = 1..2829</a>

MATHEMATICA

loop[n_] := Module[{p = n, direction = 1}, lst = {n}; While[While[p = p + direction; ! PrimeQ[p, GaussianIntegers -> True]]; direction = direction*(-I); AppendTo[lst, p]; ! (p == n && direction == 1)]; Length[lst]]; nn = 20; ps = {}; Do[If[PrimeQ[i + (j - i) I, GaussianIntegers -> True], AppendTo[ps, i + (j-i)*I]], {j, 0, nn}, {i, 0, j}]; Table[loop[ps[[n]]]; Length[Union[lst]], {n, Length[ps]}]

CROSSREFS

Cf. A222298 (spiral lengths beginning at the n-th positive real Gaussian prime).

KEYWORD

allocated

nonn

AUTHOR

T. D. Noe, Feb 27 2013

STATUS

approved

editing

#1 by T. D. Noe at Mon Feb 25 23:56:50 EST 2013
NAME

allocated for T. D. Noe

KEYWORD

allocated

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 30 17:27 EDT 2024. Contains 375545 sequences. (Running on oeis4.)