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.

A048211 Number of distinct resistances that can be produced from a circuit of n equal resistors using only series and parallel combinations.

Original entry on oeis.org

1, 2, 4, 9, 22, 53, 131, 337, 869, 2213, 5691, 14517, 37017, 93731, 237465, 601093, 1519815, 3842575, 9720769, 24599577, 62283535, 157807915, 400094029, 1014905643, 2576046289, 6541989261, 16621908599, 42251728111, 107445714789, 273335703079
Offset: 1

Views

Author

Keywords

Comments

Found by exhaustive search. Program produces all values that are combinations of two binary operators a() and b() (here "sum" and "reciprocal sum of reciprocals") over n occurrences of 1. E.g., given 4 occurrences of 1, the code forms all allowable postfix forms, such as 1 1 1 1 a a a and 1 1 b 1 1 a b, etc. Each resulting form is then evaluated according to the definitions for a and b.
Each resistance that can be constructed from n 1-ohm resistors in a circuit can be written as the ratio of two positive integers, neither of which exceeds the (n+1)st Fibonacci number. E.g., for n=4, the 9 resistances that can be constructed can be written as 1/4, 2/5, 3/5, 3/4, 1/1, 4/3, 5/3, 5/2, 4/1 using no numerator or denominator larger than Fib(n+1) = Fib(5) = 5. If a resistance x can be constructed from n 1-ohm resistors, then a resistance 1/x can also be constructed from n 1-ohm resistors. - Jon E. Schoenfield, Aug 06 2006
The fractions in the comment above are a superset of the fractions occurring here, corresponding to the upper bound A176500. - Joerg Arndt, Mar 07 2015
The terms of this sequence consider only series and parallel combinations; A174283 considers bridge combinations as well. - Jon E. Schoenfield, Sep 02 2013

Examples

			a(2) = 2 since given two 1-ohm resistors, a series circuit yields 2 ohms, while a parallel circuit yields 1/2 ohms.
		

Crossrefs

Let T(x, n) = 1 if x can be constructed with n 1-ohm resistors in a circuit, 0 otherwise. Then A048211 is t(n) = sum(T(x, n)) for all x (x is necessarily rational). Let H(x, n) = 1 if T(x, n) = 1 and T(x, k) = 0 for all k < n, 0 otherwise. Then A051389 is h(n) = sum(H(x, n)) for all x (x is necessarily rational).
Cf. A180414.

Programs

  • Maple
    r:= proc(n) option remember; `if`(n=1, {1}, {seq(seq(seq(
          [f+g, 1/(1/f+1/g)][], g in r(n-i)), f in r(i)), i=1..n/2)})
        end:
    a:= n-> nops(r(n)):
    seq(a(n), n=1..15);  # Alois P. Heinz, Apr 02 2015
  • Mathematica
    r[n_] := r[n] = If[n == 1, {1}, Union @ Flatten @ {Table[ Table[ Table[ {f+g, 1/(1/f+1/g)}, {g, r[n-i]}], {f, r[i]}], {i, 1, n/2}]}]; a[n_] := Length[r[n]]; Table[a[n], {n, 1, 15}] (* Jean-François Alcover, May 28 2015, after Alois P. Heinz *)
  • PARI
    \\ not efficient; just to show the method
    N=10;
    L=vector(N);  L[1]=[1];
    { for (n=2, N,
        my( T = Set( [] ) );
        for (k=1, n\2,
            for (j=1, #L[k],
                my( r1 = L[k][j] );
                for (i=1, #L[n-k],
                    my( r2 = L[n-k][i] );
                    T = setunion(T,  Set([r1+r2, r1*r2/(r1+r2) ]) );
                );
            );
        );
        T = vecsort(Vec(T), , 8);
        L[n] = T;
    ); }
    for(n=1, N, print1(#L[n], ", ") );
    \\ Joerg Arndt, Mar 07 2015

Formula

From Bill McEachen, Jun 08 2024: (Start)
(2.414^n)/4 < a(n) < (1-1/n)*(0.318)*(2.618^n) (Khan, n>3).
Conjecture: a(n) ~ K * a(n-1), K approx 2.54. (End)

Extensions

More terms from John W. Layman, Apr 06 2002
a(16)-a(21) from Jon E. Schoenfield, Aug 06 2006
a(22) from Jon E. Schoenfield, Aug 28 2006
a(23) from Jon E. Schoenfield, Apr 18 2010
Definition edited (to specify that the sequence considers only series and parallel combinations) by Jon E. Schoenfield, Sep 02 2013
a(24)-a(25) from Antoine Mathys, Apr 02 2015
a(26)-a(27) from Johannes P. Reichart, Nov 24 2018
a(28)-a(30) from Antoine Mathys, Dec 08 2024

A153588 Number of resistance values that can be constructed using up to n equal resistances by arranging them in an arbitrary series-parallel arrangement.

Original entry on oeis.org

1, 3, 7, 15, 35, 77, 179, 429, 1039, 2525, 6235, 15463, 38513, 96231, 241519, 607339, 1529533, 3857447, 9743247, 24634043, 62335495, 157885967, 400211085, 1015080877, 2576308943, 6542380707, 16622493939, 42252603207, 107447022475, 273337662943
Offset: 1

Views

Author

Altrego Janeway (altrego99(AT)gmail.com), Dec 29 2008

Keywords

Examples

			For n=2 there are 3 solutions, 1 ohm, (1+1) ohms and 1/(1/1+1/1)=1/2 ohm. So a(2)=3.
		

Crossrefs

Cf. A048211. This sequence is the total number of resistance values formed using up to n resistances, A048211 is the total number of resistance values formed using exactly n resistances.

Extensions

a(17)-a(25) from Antoine Mathys, Apr 02 2015
Definition clarified by Antoine Mathys, Apr 03 2015
a(26)-a(30) from Antoine Mathys, Dec 08 2024

A176497 a(n) is the cardinality of the "Cross Set" which is the subset of distinct resistances that can be produced by a circuit of n unit resistors using only series or parallel combinations which cannot be decomposed as a single unit resistor in either series or parallel with a circuit of n-1 unit resistors.

Original entry on oeis.org

0, 0, 0, 1, 4, 9, 25, 75, 195, 475, 1265, 3135, 7983, 19697, 50003, 126163, 317629, 802945, 2035619, 5158039, 13084381, 33240845, 84478199, 214717585, 546235003, 1389896683, 3537930077, 9007910913, 22942258567, 58444273501
Offset: 1

Views

Author

Sameen Ahmed Khan, Apr 21 2010

Keywords

Comments

This sequence arises in the decomposition of the sets A(n + 1) of equivalent resistances, when n equal resistors are combined in series/parallel, into series parallel and cross sets respectively. The order of the set A(n) of equivalent resistances when n resistors are combined in series/parallel is given by the Sequence A048211: 1, 2, 4, 9, 22, 53, 131, 337, 869, ... Treating the elements of A(n) as single blocks the (n + 1)th resistor can be added either in series or in parallel.
We call these two sets as series set and parallel set respectively. One can also add the (n + 1)th resistor somewhere within the A(n) blocks, and we call this set as the cross set. The series and the parallel sets each have exactly A(n) number of configurations and the same number of equivalent resistances. All the elements of the parallel set are strictly less than 1 and that of the series set are strictly greater than 1. These two disjoint sets contribute 2*A(n) number of elements to A(n + 1) and are the source of 2n. It is the cross set which takes the count beyond 2^n to 2.53^n numerically (up to n = 22) and maximally to 2.61^n, strictly fixed by the Farey scheme. The cross set is not straightforward, as it is generated by placing the (n + 1)th resistor anywhere within the blocks of A(n). The order of the cross set is A(n + 1) - 2*A(n) leading to this sequence.

Examples

			A(1) has no cross set and the first term is defined to be zero; the cross sets for n = 2 and n = 3 are empty hence the second and third term are each zero. Noting that A(3) = 4 and A(4) = 9, the fourth term is 1. The fifth term is 4.
		

Crossrefs

Formula

a(n) = A048211(n) - 2*A048211(n-1).

Extensions

a(23) from Sameen Ahmed Khan, May 02 2010
a(24)-a(25) from Antoine Mathys, Mar 19 2017
a(26)-a(30) from Antoine Mathys, Dec 08 2024
Edited by Andrew Howroyd, Dec 08 2024
Showing 1-3 of 3 results.