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.

A090634 Start with the sequence [1, 1/2, 1/3, ..., 1/n]; form new sequence of n-1 terms by taking averages of successive terms; repeat until reach a single number F(n); a(n) = denominator of F(n).

Original entry on oeis.org

1, 4, 12, 32, 80, 64, 448, 1024, 2304, 5120, 11264, 8192, 53248, 114688, 245760, 524288, 1114112, 262144, 4980736, 2097152, 3145728, 46137344, 96468992, 67108864, 419430400, 872415232, 1811939328, 3758096384, 7784628224, 5368709120, 33285996544, 68719476736
Offset: 1

Views

Author

N. J. A. Sloane, Dec 13 2003

Keywords

Comments

a(n) is the denominator of the resistance of the n-dimensional cube between two adjacent nodes, when the resistance of each edge is 1. See Nedermeyer and Smorodinsky. - Michel Marcus, Sep 13 2019

Examples

			n=3: [1, 1/2, 1/3] -> [3/4, 5/6] -> [7/12], so F(3) = 7/12. Sequence of F(n)'s begins 1, 3/4, 7/12, 15/32, 31/80, 21/64, 127/448, 255/1024, ...
		

Crossrefs

Cf. A090633 (numerators).

Programs

  • Haskell
    import Data.Ratio (denominator, (%))
    a090634 n = denominator z where
       [z] = (until ((== 1) . length) avg) $ map (1 %) [1..n]
       avg xs = zipWith (\x x' -> (x + x') / 2) (tail xs) xs
    -- Reinhard Zumkeller, Dec 08 2011
  • Maple
    a:= n-> denom(coeff(series(2*log((x/2-1)/(x-1)), x, n+1), x, n)):
    seq(a(n), n=1..35);  # Alois P. Heinz, Aug 02 2018
  • Mathematica
    f[s_list] := Table[(s[[k]] + s[[k+1]])/2, {k, 1, Length[s]-1}];
    a[n_] := Nest[f, 1/Range[n], n-1] // First // Denominator;
    Array[a, 40] (* Jean-François Alcover, Aug 02 2018 *)

Formula

a(n) = A131135(n)/2. - Paul Barry, Jun 17 2007
a(n) = denominator(2*(1-1/2^n)/n) (conjectured). - Michel Marcus, Sep 12 2019

A212045 Numerators in the resistance triangle: T(k,n)=b, where b/c is the resistance distance R(k,n) for k resistors in an n-dimensional cube.

Original entry on oeis.org

1, 3, 1, 7, 3, 5, 15, 7, 61, 2, 31, 15, 241, 25, 8, 21, 31, 131, 101, 137, 13, 127, 21, 12, 7, 2381, 343, 151, 255, 127, 2105, 167, 10781, 2033, 32663, 32, 511, 255, 16531, 929, 42061, 9383, 84677, 2357, 83, 1023, 511, 5231, 7387, 74189, 1771, 12419
Offset: 1

Views

Author

Peter J. C. Moses, Apr 28 2012

Keywords

Comments

The term "resistance distance" for electric circuits was in use years before it was proved to be a metric (on edges of graphs). The historical meaning has been described thus: "one imagines unit resistors on each edge of a graph G and takes the resistance distance between vertices i and j of G to be the effective resistance between vertices i and j..." (from Klein, 2002; see the References). Let R(k,n) denote the resistance distance for k resistors in an n-dimensional cube (for details, see Example and References). Then
R(k,n)=A212045(k,n)/A212046(k,n). Moreover,
A212045(1,n)=A090633(n), A212045(n,n)=A046878(n),
A212046(1,n)=A090634(n), A212046(n,n)=A046879(n).

Examples

			First six rows of A212045/A212046:
1
3/4 .... 1
7/12 ... 3/4 .... 5/6
15/32 .. 7/12 ... 61/96 ... 2/3
31/80 .. 15/32 .. 241/480 . 25/48 ... 8/15
21/64 .. 31/80 .. 131/320 . 101/240 . 137/320 . 13/30
The resistance distances for n=3 (the ordinary cube) are 7/12, 3/4, and 5/6, so that row 3 of the triangle of numerators is (7, 3, 5).  For the corresponding electric circuit, suppose X is a vertex of the cube. The resistance across any one of the 3 edges from X is 7/12 ohm; the resistance across any two adjoined edges (i.e., a diagonal of a face of the cubes) is 3/4 ohm; the resistance across and three adjoined edges (a diagonal of the cube) is 5/6 ohm.
		

References

  • F. Nedemeyer and Y. Smorodinsky, Resistances in the multidimensional cube, Quantum 7:1 (1996) 12-15 and 63.

Crossrefs

Programs

  • Mathematica
    R[0, n_] := 0; R[1, n_] := (2 - 2^(1 - n))/n;
    R[k_, n_] := R[k, n] = ((k - 1) R[k - 2, n] - n R[k - 1, n] + 2^(1 - n))/(k - n - 1)
    t = Table[R[k, n], {n, 1, 11}, {k, 1, n}]
    Flatten[Numerator[t]]    (* A212045 *)
    Flatten[Denominator[t]]  (* A212046 *)
    TableForm[Numerator[t]]
    TableForm[Denominator[t]]

Formula

A212045(n)/A212046(n) is the rational number R(k, n) =
[(k-1)*R(k-2,n)-n*R(k-1,n)+2^(1-n)]/(k-n-1), for n>=1, k>=1.

A212046 Denominators in the resistance triangle: T(k,n)=b, where b/c is the resistance distance R(k,n) for k resistors in an n-dimensional cube.

Original entry on oeis.org

1, 4, 1, 12, 4, 6, 32, 12, 96, 3, 80, 32, 480, 48, 15, 64, 80, 320, 240, 320, 30, 448, 64, 35, 20, 6720, 960, 420, 1024, 448, 7168, 560, 35840, 6720, 107520, 105, 2304, 1024, 64512, 3584, 161280, 35840, 322560, 8960, 315, 5120, 2304, 23040, 32256
Offset: 1

Views

Author

Peter J. C. Moses, Apr 30 2012

Keywords

Comments

The term "resistance distance" for electric circuits was in use years before it was proved to be a metric (on edges of graphs). The historical meaning has been described thus: "one imagines unit resistors on each edge of a graph G and takes the resistance distance between vertices i and j of G to be the effective resistance between vertices i and j..." (from Klein, 2002; see the References). Let R(k,n) denote the resistance distance for k resistors in an n-dimensional cube (for details, see Example and References). Then
R(k,n)=A212045(k,n)/A212046(k,n). Moreover,
A212045(1,n)=A090633(n), A212045(n,n)=A046878(n),
A212046(1,n)=A090634(n), A212046(n,n)=A046879(n).

Examples

			First six rows of A212045/A212046:
  1
  3/4 .... 1
  7/12 ... 3/4 .... 5/6
  15/32 .. 7/12 ... 61/96 ... 2/3
  31/80 .. 15/32 .. 241/480 . 25/48 ... 8/15
  21/64 .. 31/80 .. 131/320 . 101/240 . 137/320 . 13/30
The resistance distances for n=3 (the ordinary cube) are 7/12, 3/4, and 5/6, so that row 3 of the triangle of numerators is (7, 3, 5).  For the corresponding electric circuit, suppose X is a vertex of the cube.  The resistance across any one of the 3 edges from X is 7/12 ohm; the resistance across any two adjoined edges (i.e., a diagonal of a face of the cubes) is 3/4 ohm; the resistance across and three adjoined edges (a diagonal of the cube) is 5/6 ohm.
		

References

  • F. Nedemeyer and Y. Smorodinsky, Resistances in the multidimensional cube, Quantum 7:1 (1996) 12-15 and 63.

Crossrefs

Programs

  • Mathematica
    R[0, n_] := 0; R[1, n_] := (2 - 2^(1 - n))/n;
    R[k_, n_] := R[k, n] = ((k - 1) R[k - 2, n] - n R[k - 1, n] + 2^(1 - n))/(k - n - 1)
    t = Table[R[k, n], {n, 1, 11}, {k, 1, n}]
    Flatten[Numerator[t]]    (* A212045 *)
    Flatten[Denominator[t]]  (* A212046 *)
    TableForm[Numerator[t]]
    TableForm[Denominator[t]]

Formula

A212045(n)/A212046(n) is the rational number R(k, n) =
[(k-1)*R(k-2,n)-n*R(k-1,n)+2^(1-n)]/(k-n-1), for n>=1, k>=1.
Showing 1-3 of 3 results.