The Odd Only Spiral (A twist on the ulam spiral with an interesting property)

In summary, the conversation discusses a modified Ulam spiral that only considers odd numbers, resulting in interesting patterns and empty columns and rows. The conversation also mentions the use of number sieves and equations to explain these patterns.
  • #1
trini
217
0
Hi guys, I've been playing around with structure generated patterns and have come across one which has caught my attention. I am only just starting to learn about number theory and so I am sure someone might be able to provide an explanation for this. Let me describe what I did then show you the results:

The motion of the path is the same as a Ulam spiral. For those of you not familiar with this structure, you can read about it here:

http://mathworld.wolfram.com/PrimeSpiral.html

If you go to that link, you can observe the square spiral path the numbers follow. Notice that the path progresses by counting all the positive integers, starting with 1 (1,2,3,4...).

This is where I made my change. I figured that since half of the numbers on the path of a standard Ulam grid were even, and if all we wanted to do was color the prime numbers, then half of the space was being wasted. By only considering odd numbers on the path, blank spaces would have more 'meaning' from a visual point of view, since there was at least the possibility that the space could have been prime.

So I set the starting point to 0, and the from that point assigned successive ODD NUMBERS ONLY as the path progressed (0,1,3,5,7...). What I found was that there were two columns and two rows which contained absolutely NO primes (except for 7). I found this interesting, as I had verified this for up to around the first 250,000 primes.

I am attaching 3 pictures of the sequence, here are some things to keep in mind:

1) most examples of the Ulam spiral (like the one in the link provided) start at the center, move right, and then follow an anticlockwise pattern.

In my algorithm, I start at the center, move up, then follow a clockwise pattern. Note this just changes the paths orientation on the grid, it doesn't affect the pattern.

2) I refer to each full rotation around the center as a turn.

3) I highlighted the columns and rows I was talking about in green for ease of viewing them. the MATLAB file doesn't do that on its own.the three pics are at 10, 50, and 250 turns. I am also attaching the MATLAB file I used(see next post). I did it up to turn 690 but it froze before I saved the results >.< the property still held tho. Feel free to play around with it if you like. there may be more interesting patterns that a more trained eye can see.

This is probably trivial, but I thought I should share =) Hopefully someone could explain how this works to me.
 

Attachments

  • 10 turn.jpg
    10 turn.jpg
    26 KB · Views: 714
  • 50 turn.jpg
    50 turn.jpg
    62.2 KB · Views: 765
  • 250 turn.jpg
    250 turn.jpg
    79.3 KB · Views: 847
Last edited:
Physics news on Phys.org
  • #2
The MATLAB file:
 

Attachments

  • center.m
    2.1 KB · Views: 448
  • #3
Oh my goodness, after reviewing my post, I noticed that there are actually 2 more columns and rows with blank spaces, meaning there is a double column underneath the start point, a double row to its right, a single above it, and a single to its left (from the frame of reference I started with)

Here are the pics showing the 4 quadrants:
 

Attachments

  • 10 turn.jpg
    10 turn.jpg
    26.5 KB · Views: 567
  • 50 turn.jpg
    50 turn.jpg
    62.4 KB · Views: 646
  • 250 turn.jpg
    250 turn.jpg
    79.4 KB · Views: 653
  • #4
sigh, nobody? =(
 
  • #5
trini said:
sigh, nobody? =(

Would you mind upping one with the squares labeled?
 
  • #6
no prob, I'm uploading one with 3 turns of the spiral labelled and another showing the path
 

Attachments

  • 10 turnlbl.jpg
    10 turnlbl.jpg
    21 KB · Views: 581
  • 10 turnshape.jpg
    10 turnshape.jpg
    20.1 KB · Views: 552
  • #7
Well, I'm sure you you know that given k consecutive integers, one of them is a multiple of k. Why the multiple s of 3 and 5 are picked out idk. Maybe if you figure a closed form for where a number is placed you'll see that your windings place 3s and 5s only in those columns. I'm only guessing here. But you should readup on number sieves, I thinkthatll help you out.

Typing on a tablet is toodamnhard
 
  • #8
well that was my initial thought, for the first 6 turns or so all the numbers in the columns and rows I highlighted were multiples of 3,5, or 7. However there reaches a point when that trend stops (on the number 187) after that there's no real order to what the highlighted columns are multiples of.
 
  • #9
The vertical column going downwards from the blue square consists of the points
[tex]8n^2 + 2n - 1[/tex]
which factors as
[tex](2n+1)(4n-1)[/tex]

The line going leftwards is
[tex]8n^2 + 6n + 1 = (2n+1)(4n+1)[/tex]

The other downwards line is
[tex](2n-1)(4n+1)[/tex]

My expectation is that every product [tex](2n+a)(2n+b)[/tex] with a,b odd gives you an eventually empty vertical or horizontal line, and conversely every such line is of this form.
 
  • #10
thanks hurkyl! ^_^

I'll try that equation out and use it to hunt for all the lines in the image. Is there any use to things like these?
 

1. What is the Odd Only Spiral?

The Odd Only Spiral is a variation of the Ulam Spiral, a mathematical concept that plots prime numbers in a spiral pattern. In the Odd Only Spiral, only odd numbers are plotted, creating a unique and intriguing pattern.

2. How is the Odd Only Spiral different from the Ulam Spiral?

The main difference between the Odd Only Spiral and the Ulam Spiral is that the Odd Only Spiral only includes odd numbers, while the Ulam Spiral includes both odd and even numbers. Additionally, the Odd Only Spiral has a unique property that the Ulam Spiral does not possess.

3. What is the unique property of the Odd Only Spiral?

The unique property of the Odd Only Spiral is that it forms a perfect square when the numbers are arranged in a clockwise direction, starting from the top left corner. This means that the number of elements in each row and column is a perfect square, such as 1, 4, 9, 16, etc.

4. How is the Odd Only Spiral useful in mathematics?

The Odd Only Spiral is useful in mathematics for several reasons. It provides a visual representation of prime numbers and their distribution, which can aid in understanding their patterns and relationships. Additionally, the unique property of the spiral can be used in number puzzles and games.

5. Can the Odd Only Spiral be extended to include other types of numbers?

Yes, the concept of the Odd Only Spiral can be extended to include other types of numbers, such as even numbers, prime numbers, or multiples of a certain number. This can create even more interesting and complex patterns, making it a useful tool for exploring number theory.

Similar threads

  • Linear and Abstract Algebra
Replies
2
Views
3K
Replies
30
Views
5K
  • Linear and Abstract Algebra
Replies
2
Views
2K
Replies
2
Views
911
Replies
9
Views
948
  • Special and General Relativity
Replies
13
Views
1K
  • Astronomy and Astrophysics
Replies
1
Views
886
  • Calculus and Beyond Homework Help
Replies
2
Views
2K
  • Linear and Abstract Algebra
Replies
2
Views
3K
  • Electromagnetism
Replies
31
Views
2K
Back
Top