A331377 The areas of the triangles formed by joining three consecutive primes as vertices on the Ulam spiral.
1, 2, 3, 3, 4, 4, 2, 6, 3, 6, 12, 0, 4, 6, 9, 4, 2, 8, 0, 6, 3, 9, 18, 4, 4, 0, 0, 2, 14, 18, 8, 2, 4, 6, 0, 18, 0, 6, 9, 0, 8, 2, 0, 4, 0, 72, 6, 3, 0, 0, 0, 10, 0, 18, 0, 0, 4, 4, 0, 3, 49, 28, 0, 0, 12, 24, 12, 6, 0, 0, 15, 9, 0, 6, 6, 0, 0, 16, 0, 0, 10, 0, 0, 3, 9, 0, 0, 0, 4, 0, 12, 12, 0, 0, 4, 24, 0, 11, 21, 12
Offset: 1
Keywords
Examples
a(1) = 1 as the relative coordinates of the first three primes, 2,3,5, from the central 1 square are (1,0), (1,1), and (-1,1), which form a triangle with area |0*0 - -2*-1|/2 = 1. a(3) = 3 as the relative coordinates of the third to fifth primes, 5,7,11, from the central 1 square are (-1,1), (-1,-1), and (2,0), which form a triangle with area |-3*-1 - -3*1|/2 = 3. a(12) = 0 as the relative coordinates of the twelfth to fourteenth primes, 37,41,43, from the central 1 square are (-3,3), (-3,-1), and (-3,-3), all of which lie on the same vertical line so the triangle formed has zero area.
Links
- Scott R. Shannon, Image showing the triangles for primes up to 40193. The triangles are shaded based on their size, from red, area = 1, up to violet, area = 312.
- Wikipedia, Ulam spiral.
- Wikipedia, Triangle.
- Wikipedia, Legendre's conjecture.
Comments