Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

NumberTheoryUtilities

Guides

  • UtilitiesBreakdown

Symbols

  • ChordTrailsPlot
  • SpiralLattice
  • SunflowerEmbedding
  • SunflowerEmbeddingPlot
  • TriangleMatrixEmbedding
AntonAntonov`NumberTheoryUtilities`
SpiralLattice
​
SpiralLattice
[n]
gives the spiral lattice of the first
2
n
positive integers.​
​
​
SpiralLattice[n,c]
gives a lattice that finishes in the specified corner
c
.
​
Examples  
(4)
Basic Examples  
(1)
Lattices of the first 64 positive integers:
In[1]:=
SpiralLattice
[8]//TableForm
Out[1]//TableForm=
50
49
48
47
46
45
44
43
51
26
25
24
23
22
21
42
52
27
10
9
8
7
20
41
53
28
11
2
1
6
19
40
54
29
12
3
4
5
18
39
55
30
13
14
15
16
17
38
56
31
32
33
34
35
36
37
57
58
59
60
61
62
63
64
The last (largest) number of the lattice is in the top-right corner:
In[2]:=
SpiralLattice
[8,"top-right"]//TableForm
Out[2]//TableForm=
57
58
59
60
61
62
63
64
56
31
32
33
34
35
36
37
55
30
13
14
15
16
17
38
54
29
12
3
4
5
18
39
53
28
11
2
1
6
19
40
52
27
10
9
8
7
20
41
51
26
25
24
23
22
21
42
50
49
48
47
46
45
44
43
Scope  
(1)

Applications  
(1)

Neat Examples  
(1)

SeeAlso
TriangleMatrixEmbedding
 
▪
SunflowerEmbedding
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com