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-4 of 4 results.

A141719 Triangle online: 4, A140978(n+1) - A133819 .

Original entry on oeis.org

4, 8, 8, 12, 15, 12, 16, 24, 21, 16, 20, 35, 32, 27, 20, 24, 48, 45, 40, 33, 24, 28, 63, 60, 55, 48, 39, 28, 32, 80, 77, 72, 65, 56, 45, 32, 36, 99, 96, 91, 84, 75, 64, 51, 36, 40, 120, 117, 112, 105, 96, 85, 72, 57, 40, 44
Offset: 1

Views

Author

Paul Curtz, Sep 11 2008

Keywords

Comments

4 is A140978(0).

Formula

Triangle: 4; 8, 8; 12, 15, 12; 16, 24, 21, 16; 20, 35, 32, 27, 20; .

A120070 Triangle of numbers used to compute the frequencies of the spectral lines of the hydrogen atom.

Original entry on oeis.org

3, 8, 5, 15, 12, 7, 24, 21, 16, 9, 35, 32, 27, 20, 11, 48, 45, 40, 33, 24, 13, 63, 60, 55, 48, 39, 28, 15, 80, 77, 72, 65, 56, 45, 32, 17, 99, 96, 91, 84, 75, 64, 51, 36, 19, 120, 117, 112, 105, 96, 85, 72, 57, 40, 21
Offset: 2

Views

Author

Wolfdieter Lang, Jul 20 2006

Keywords

Comments

The rationals r(m,n):=a(m,n)/(m^2*n^2), for m-1 >= n, else 0, are used to compute the frequencies of the spectral lines of the H-atom according to quantum theory: nu(m,n) = r(m,n)*c*R' with c*R'=3.287*10^15 s^(-1) an approximation for the Rydberg frequency. R' indicates, that the correction factor 1/(1+m_e/m_p), approximately 0.9995, with the masses for the electron and proton, has been used for the Rydberg constant R_infinity. c:=299792458 m/s is, per definition, the velocity of light in vacuo (see A003678).
In order to compute the wave length of the spectral lines approximately one uses the reciprocal rationals: lambda(m,n):= c/nu(m,n) = (1/r(m,n))*91.1961 nm. 1 nm = 10^{-9} m. For the corresponding energies one uses approximately E(m,n) = r(m,n)*13.599 eV (electron Volts).
The author was inspired by Dewdney's book to compile this table and related ones.
For the approximate frequencies, energies and wavelengths of the first members of the Lyman (n=1, m>=2), Balmer (n=2, m>=3), Paschen (n=3, m>=4), Brackett (n=4, m>=5) and Pfund (n=5, m>=6) series see the W. Lang link under A120072.
Frenicle wrote this as a(n+1) = A140978(n) - A133819(n-1). - Paul Curtz, Aug 19 2008
This triangle also has an interpretation related to particle spin. For proper offset such that T(0,0) = 3, then, where h-bar = h/(2*Pi) = A003676/A019692 (= The Dirac constant, also known as Planck's reduced constant) and Spin(n/2) = h-bar/2*sqrt(n(n+2)), it follows that: h-bar/2*sqrt(T(r,k)) = h-bar/2*sqrt(T(r,0) - T(k-1,0)) = sqrt((Spin((r+1)/2))^2 - (Spin(k/2))^2). For example, for r = k = 4, then h-bar/2*sqrt(11) = h-bar/2*sqrt(T(4,4)) = h-bar/2*sqrt(T(4,0) - T(3,0)) = sqrt(h-bar^2/4*T(4,0) - h-bar^2/4*T(3,0)) = sqrt(h-bar^2/4*35 - h-bar^2/4*24) = sqrt((Spin((4+1)/2))^2 - (Spin(4/2))^2); 35 = 5*(5+2) & 24 = 4*(4+2). - Raphie Frank, Dec 30 2012

Examples

			Triangle begins
  [ 3];
  [ 8, 5];
  [15, 12,  7];
  [24, 21, 16,  9];
  [35, 32, 27, 20, 11];
  ...
		

References

  • A. K. Dewdney, Reise in das Innere der Mathematik, Birkhäuser, Basel, 2000, pp. 148-154; engl.: A Mathematical Mystery Tour, John Wiley & Sons, N.Y., 1999.

Crossrefs

Row sums give A016061(n-1), n>=2.
Cf. A120072/A120073 numerator and denominator tables for rationals r(m, n).

Programs

  • Mathematica
    ColumnForm[Table[n^2 - k^2, {n, 2, 13}, {k, n - 1}], Center] (* Alonso del Arte, Oct 26 2011 *)
  • PARI
    nmax=400;a=vector(1+nmax*(nmax-1)\2);idx=1;for(n=2,nmax,for(k=1,n-1,a[idx]=n*n-k*k;idx++)) \\ Stanislav Sykora, Feb 17 2014
    
  • PARI
    T(n,k)=n^2-k^2;
    for (n=1,10,for(k=1,n-1, print1(T(n,k),", ")));
    \\ Joerg Arndt, Feb 23 2014

Formula

a(m,n) = m^2 - n^2 for m-1 >= n, otherwise 0.
G.f. for column n=1,2,...: x^(n+1)*((2*n+1)- (2*n-1)*x)/(1-x)^3.
G.f. for rationals r(m,n), n=1,2,...,10 see W. Lang link.
T(r,k) = T(r,0) - T(k-1,0), T(0,0) = 3. - Raphie Frank, Dec 27 2012

A055096 Triangle read by rows, sums of 2 distinct nonzero squares: T(n,k) = k^2+n^2, (n>=2, 1 <= k <= n-1).

Original entry on oeis.org

5, 10, 13, 17, 20, 25, 26, 29, 34, 41, 37, 40, 45, 52, 61, 50, 53, 58, 65, 74, 85, 65, 68, 73, 80, 89, 100, 113, 82, 85, 90, 97, 106, 117, 130, 145, 101, 104, 109, 116, 125, 136, 149, 164, 181, 122, 125, 130, 137, 146, 157, 170, 185, 202, 221, 145, 148, 153, 160
Offset: 2

Views

Author

Antti Karttunen, Apr 04 2000

Keywords

Comments

Discovered by Bernard Frénicle de Bessy (1605?-1675). - Paul Curtz, Aug 18 2008
Terms that are not hypotenuses in primitive Pythagorean triangles, are replaced by 0 in A222946. - Reinhard Zumkeller, Mar 23 2013
This triangle T(n,k) gives the circumdiameters for the Pythagorean triangles with a = (n+1)^2 - k^2, b = 2*(n+1)*k and c = (n+1)^2 + k^2 (see the Floor van Lamoen entries or comments A063929, A063930, A002283, A003991). See also the formula section. Note that not all Pythagorean triangles are covered, e.g., (9,12,15) does not appear. - Wolfdieter Lang, Dec 03 2014

Examples

			The triangle T(n, k) begins:
n\k   1   2   3   4   5   6   7   8   9  10  11 ...
2:    5
3:   10  13
4:   17  20  25
5:   26  29  34  41
6:   37  40  45  52  61
7:   50  53  58  65  74  85
8:   65  68  73  80  89 100 113
9:   82  85  90  97 106 117 130 145
10: 101 104 109 116 125 136 149 164 181
11: 122 125 130 137 146 157 170 185 202 221
12: 145 148 153 160 169 180 193 208 225 244 265
...
13: 170 173 178 185 194 205 218 233 250 269 290 313,
14: 197 200 205 212 221 232 245 260 277 296 317 340 365,
15: 226 229 234 241 250 261 274 289 306 325 346 369 394 421,
16: 257 260 265 272 281 292 305 320 337 356 377 400 425 452 481,
...
Formatted and extended by _Wolfdieter Lang_, Dec 02 2014 (reformatted Jun 11 2015)
The successive terms are (1^2+2^2), (1^2+3^2), (2^2+3^2), (1^2+4^2), (2^2+4^2), (3^2+4^2), ...
		

Crossrefs

Sorting gives A024507. Count of divisors: A055097, Möbius: A055132. For trinv, follow A055088.
Cf. A001844 (right edge), A002522 (left edge), A033429 (central column).

Programs

  • Haskell
    a055096 n k = a055096_tabl !! (n-1) !! (k-1)
    a055096_row n = a055096_tabl !! (n-1)
    a055096_tabl = zipWith (zipWith (+)) a133819_tabl a140978_tabl
    -- Reinhard Zumkeller, Mar 23 2013
    
  • Magma
    [n^2+k^2: k in [1..n-1], n in [2..15]]; // G. C. Greubel, Apr 19 2023
    
  • Maple
    sum2distinct_squares_array := (n) -> (((n-((trinv(n-1)*(trinv(n-1)-1))/2))^2)+((trinv(n-1)+1)^2));
  • Mathematica
    T[n_, k_]:= (n+1)^2 + k^2; Table[T[n, k], {n,15}, {k,n}]//Flatten (* Jean-François Alcover, Mar 16 2015, after Reinhard Zumkeller *)
  • SageMath
    def A055096(n,k): return n^2 + k^2
    flatten([[A055096(n,k) for k in range(1,n)] for n in range(2,16)]) # G. C. Greubel, Apr 19 2023

Formula

a(n) = sum2distinct_squares_array(n).
T(n, 1) = A002522(n).
T(n, n-1) = A001844(n-1).
T(2*n-2, n-1) = A033429(n-1).
T(n,k) = A133819(n,k) + A140978(n,k) = (n+1)^2 + k^2, 1 <= k <= n. - Reinhard Zumkeller, Mar 23 2013
T(n, k) = a*b*c/(2*sqrt(s*(s-1)*(s-b)*(s-c))) with s =(a + b + c)/2 and the substitution a = (n+1)^2 - k^2, b = 2*(n+1)*k and c = (n+1)^2 + k^2 (the circumdiameter for the considered Pythagorean triangles). - Wolfdieter Lang, Dec 03 2014
From Bob Selcoe, Mar 21 2015: (Start)
T(n,k) = 1 + (n-k+1)^2 + Sum_{j=0..k-2} (4*j + 2*(n-k+3)).
T(n,k) = 1 + (n+k-1)^2 - Sum_{j=0..k-2} (2*(n+k-3) - 4*j).
Therefore: 4*(n-k+1) + Sum_{j=0..k-2} (2*(n-k+3) + 4*j) = 4*n(k-1) - Sum_{j=0..k-2} (2*(n+k-3) - 4*j). (End)
From G. C. Greubel, Apr 19 2023: (Start)
T(2*n-3, n-1) = A033429(n-1).
T(2*n-4, n-2) = A079273(n-1).
T(2*n-2, n) = A190816(n).
T(3*n-4, n-1) = 10*A000290(n-1) = A033583(n-1).
Sum_{k=1..n-1} T(n, k) = A331987(n-1).
Sum_{k=1..floor(n/2)} T(n-k, k) = A226141(n-1). (End)

Extensions

Edited: in T(n, k) formula by Reinhard Zumkeller k < n replaced by k <= n. - Wolfdieter Lang, Dec 02 2014
Made definition more precise, changed offset to 2. - N. J. A. Sloane, Mar 30 2015

A143814 Triangle T(n,m) read along rows: T(n,m) = n^2 - (m+1)^2 for 1<=m

Original entry on oeis.org

3, 5, 8, 12, 7, 15, 21, 16, 9, 24, 32, 27, 20, 11, 35, 45, 40, 33, 24, 13, 48, 60, 55, 48, 39, 28, 15, 63, 77, 72, 65, 56, 45, 32, 17, 80, 96, 91, 84, 75, 64, 51, 36, 19, 99, 117, 112, 105, 96, 85, 72, 57, 40, 21, 120, 140, 135, 128, 119, 108, 95, 80, 63, 44, 23, 143
Offset: 2

Views

Author

Paul Curtz, Sep 02 2008

Keywords

Comments

The triangle appears taking the entries of A140978,
4;
9,9;
16,16,16;
25,25,25,25;
..
minus the entries of A133819 with the 1's moved to the end of the rows,
1;
4,1;
4,9,1;
4,9,16,1;
4,9,16,25,1;
The result T(n,m) is a variant of A120070, the first term in each row of A120070 transferred to the end of the row.

Examples

			3;
5,8;
12,7,15;
21,16,9,24;
32,27,20,11,35;
		

Crossrefs

Cf. A016061 (row sums).

Programs

Showing 1-4 of 4 results.