cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-3 of 3 results.

A335895 Middle side of primitive triples, in nondecreasing order, for integer-sided triangles whose angles A < B < C are in arithmetic progression.

Original entry on oeis.org

7, 7, 13, 13, 19, 19, 31, 31, 37, 37, 43, 43, 49, 49, 61, 61, 67, 67, 73, 73, 79, 79, 91, 91, 91, 91, 97, 97, 103, 103, 109, 109, 127, 127, 133, 133, 133, 133, 139, 139, 151, 151, 157, 157, 163, 163, 169, 169, 181, 181, 193, 193, 199, 199, 211, 211, 217, 217, 217, 217
Offset: 1

Views

Author

Bernard Schott, Jul 04 2020

Keywords

Comments

Equivalently, lengths of the middle side b of primitive non-equilateral triangles that have an angle of Pi/3; indeed, this side is opposite to angle B = Pi/3.
Also solutions b of the Diophantine equation b^2 = a^2 - a*c + c^2 with a < b and gcd(a,b) = 1.
For the corresponding primitive triples and miscellaneous properties and references, see A335893.
When (a, b, c) is a triple or a solution, then (c-a, b, c) is another solution, so every b in the data is present an even number of times (see examples).
From Bernard Schott, Apr 02 2021: (Start)
Terms are primes of the form 6k+1, or products of primes of the form 6k+1. Three observations:
-> The lengths b are in A004611 \ {1} without repetition, 1 corresponds to the equilateral triangle (1, 1, 1).
-> Every term appears 2^k (k>0) times consecutively and the smallest term that appears 2^k times is precisely A121940(k); see examples.
-> The terms that appear precisely twice consecutively are in A133290. (End)

Examples

			b = 7 appears twice because A121940(1) = 7 and:
  7^2 = 3^2 - 3*8 + 8^2, with triple (3, 7, 8),
  7^2 = 5^2 - 5*8 + 8^2, with triple (5, 7, 8).
b = 91 appears four times because A121940(2) = 91 and:
  91^2 = 11^2 - 11*96 + 96^2, with triple (11, 91, 96),
  91^2 = 85^2 - 85*96 + 96^2, with triple (85, 91, 96),
  91^2 = 19^2 - 19*99 + 99^2, with triple (19, 91, 99),
  91^2 = 80^2 - 80*99 + 99^2, with triple (80, 91, 99).
b = 1729 appears eight times because A121940(3) = 1729 and the triples of these 2^3 = 8 triangles are (96, 1729, 1775), (1679, 1729, 1775), (249, 1729, 1840), (1591, 1729, 1840), (656, 1729, 1961), (1305, 1729, 1961), (799, 1729, 1984), (1185, 1729, 1984).
		

Crossrefs

Cf. A335893 (triples), A335894 (smallest side), this sequence (middle side), A335896 (largest side), A335897 (perimeter).

Programs

  • Maple
    for b from 3 to 100 by 2 do
    for a from 1 to b-1 do
    c := (a+ sqrt(4*b^2-3*a^2))/2;
    if igcd(a, b) = 1 and issqr(4*b^2-3*a^2) then print(b); end if;
    end do;
    end do;
  • PARI
    lista(nn) = {forstep(b=1, nn, 2, for(a=1, b-1, if (gcd(a, b) == 1, my(d = 4*b^2 - 3*a^2); if (issquare(d), my(c = (a + sqrtint(d))/2); if (denominator(c)==1, print1(b, ", "));););););} \\ Michel Marcus, Jul 05 2020

Formula

a(n) = A335893(n, 2).
b is such that b^2 = a^2 - a*c + c^2 with gcd(a,b) = 1 and a < b.

A357277 Largest side c of primitive triples, in nondecreasing order, for integer-sided triangles with angles A < B < C = 2*Pi/3 = 120 degrees.

Original entry on oeis.org

7, 13, 19, 31, 37, 43, 49, 61, 67, 73, 79, 91, 91, 97, 103, 109, 127, 133, 133, 139, 151, 157, 163, 169, 181, 193, 199, 211, 217, 217, 223, 229, 241, 247, 247, 259, 259, 271, 277, 283, 301, 301, 307, 313, 331, 337, 343, 349, 361, 367, 373, 379, 397, 403, 403, 409, 421, 427, 427, 433, 439, 457
Offset: 1

Views

Author

Bernard Schott, Oct 01 2022

Keywords

Comments

For the corresponding primitive triples and miscellaneous properties and references, see A357274.
Solutions c of the Diophantine equation c^2 = a^2 + a*b + b^2 with gcd(a,b) = 1 and a < b.
Also, side c can be generated with integers u, v such that gcd(u,v) = 1 and 0 < v < u, c = u^2 + u*v + v^2.
Some properties:
-> Terms are primes of the form 6k+1, or products of primes of the form 6k+1.
-> The lengths c are in A004611 \ {1} without repetition, in increasing order.
-> Every term appears 2^(k-1) (k>=1) times consecutively.
-> The smallest term that appears 2^(k-1) times is precisely A121940(k): see examples.
-> The terms that appear only once in this sequence are in A133290.
-> The terms are the same as in A335895 but frequency is not the same: when a term appears m times consecutively here, it appears 2m times consecutively in A335895. This is because if (a,b,c) is a primitive 120-triple, then both (a,a+b,c) and (a+b,b,c) are 60-triples in A335893 (see Emrys Read link, lemma 2 p. 302).
Differs from A088513, the first 20 terms are the same then a(21) = 151 while A088513(21) = 157.
A050931 gives all the possible values of the largest side c, in increasing order without repetition, for all triangles with an angle of 120 degrees, but not necessarily primitive.

Examples

			c = 7 appears once because A121940(1) = 7 with triple (3,5,7) and 7^2 = 3^2 + 3*5 + 5^2.
c = 91 is the smallest term to appear twice because A121940(2) = 91 with primitive 120-triples (11, 85, 91) and (19, 80, 91).
c = 1729 is the smallest term to appear four times because A121940(3) = 1729 with triples (96, 1679, 1729), (249, 1591, 1729), (656, 1305, 1729), (799, 1185, 1729).
		

Crossrefs

Cf. A357274 (triples), A357275(smallest side), A357276 (middle side), A357278 (perimeter).

Programs

  • Maple
    for c from 5 to 500 by 2 do
    for a from 3 to c-2 do
    b := (-a + sqrt(4*c^2-3*a^2))/2;
    if b=floor(b) and gcd(a, b)=1 and a
    				

Formula

a(n) = A357274(n, 3).

A133323 Hex (or centered hexagonal) numbers that are prime powers of the form (6n+1)^k.

Original entry on oeis.org

7, 19, 37, 61, 127, 169, 271, 331, 397, 547, 631, 919, 1657, 1801, 1951, 2269, 2437, 2791, 3169, 3571, 4219, 4447, 5167, 5419, 6211, 7057, 7351, 8269, 9241, 10267, 11719, 12097, 13267, 13669, 16651, 19441, 19927, 22447, 23497, 24571, 25117, 26227, 27361
Offset: 1

Author

Mats Granvik, Oct 18 2007, Oct 19 2007

Keywords

Comments

Intersection of A003215 and A133290.

Crossrefs

Cf. A004611.
Showing 1-3 of 3 results.