Google Groups Home
Help | Sign in
Inductors and lamps puzzle
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  24 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Ioannis  
View profile
 More options Nov 26 2006, 6:29 pm
Newsgroups: comp.soft-sys.math.maple, sci.math, rec.puzzles
From: "Ioannis" <morph...@olympus.mons>
Date: Mon, 27 Nov 2006 01:29:51 +0200
Local: Sun, Nov 26 2006 6:29 pm
Subject: Inductors and lamps puzzle
High Intensity Discharge lamps, such as high pressure mercury lamps, high
pressure sodium lamps and metal halide lamps (all these are relatively high
power lamps that are used to illuminate streets and various other spaces) are
what are called "negative resistance" devices:

When they are connected to the AC outlet directly, they cause more and more
current to be drawn, until they either blow the fuse or destroy themselves.

To prevent this from happening, they are connected in series with what's
called a "ballast". A ballast is an inductive coil which limits the circuit
current to i_b Amperes. The value i_b is characteristic of the ballast used.
In other words, there is a one-to-one correspondance between ballast type and
the amperage it provides when its connected in series with a specific lamp.

The ballast is (almost) pure inductive resistance R_b, therefore the ballast
current and resistance are related via Ohm's Law for AC: i_b = 220V (or 110V)
/R_b. Let's assume that we are working with 220V AC.

Since ballasts are AC resistors, they can be wired in series or in parallel.

Example: A HID lamp that requires 1.3A to operate, can use a ballast with R_b
~= 169.23 Ohm in AC.

220V/169.23Ohm ~= 1.3A

But it can also use two "larger"[*] ballasts with R_{b1} = R_{b2}  ~= 84.6 Ohm
wired in series:

220V/(84.6+84.6)Ohm ~= 1.3A

The circuit can also use two "smaller" ballasts with R_{b1} = R_{b2}~=338.4Ohm
wired in parallel:

In this case the total resistance R_T is given by:

1/R_T = 1/R_{b1} + 1/R_{b2}, =>

R_T = R_{b1}*R_{b2}/(R_{b1} + R_{b2}) =
      =338.4^2/(2*338.4)
      =338.4/2
      =169.23 Ohm.

Therefore the circuit's total amperage i_T will again be:

i_T = 220/R_T ~= 1.3A.

Additionally, the circuit can also use two /different/ ballasts, with R_{b1} +
R_{b2} = 169.23Ohm, wired in series.

And it can also use two different ballasts in parallel, provided the total
resistance R_T from the parallel connection expression, comes out to be 169.23
Ohm. I am too lazy to cook up an example.

The puzzle: You are given n different ballasts, which provide for
corresponding circuit amperages {i_1, i_2,...i_n}.

1) Determine how many different circuit amperages i_m you can get with these n
ballasts. (Without using brute force?)

2) Specifically[**]: I have a lamp that requires amperage i_L. Can I find a
combined connection with some of my n ballasts (some of them in parallel,
others in series, etc) that will provide a "close" amperage i_B for my HID
lamp? Let's say close is |i_L - i_B| <= epsilon, for some specified epsilon.

3) Same questions as 1) and 2) but allow some of the n ballasts to be
identical (i.e. some of the ballasts in the collection have i_k = i_m)

Many thanks,

[*] By convention ballasts with smaller R_b are termed "larger" because they
drive lamps of larger ratings, in Watts.
[**] This is an actual problem I encountered with by collection of lamps and
ballasts, so if anyone can come up with a Maple solution to the above puzzle,
I'd appreciate it.
--
Ioannis
-------
The best way to predict reality, is to know exactly what you DON'T want.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ioannis  
View profile
 More options Nov 26 2006, 8:56 pm
Newsgroups: comp.soft-sys.math.maple, sci.math, rec.puzzles
From: "Ioannis" <morph...@olympus.mons>
Date: Mon, 27 Nov 2006 03:56:41 +0200
Local: Sun, Nov 26 2006 8:56 pm
Subject: Re: Inductors and lamps puzzle
"Ioannis" <morph...@olympus.mons> wrote in message

news:1164583793.491748@athnrd02...
[snip]

> The puzzle: You are given n different ballasts, which provide for
> corresponding circuit amperages {i_1, i_2,...i_n}.

> 1) Determine how many different circuit amperages i_m you can get with these
n
> ballasts. (Without using brute force?)

Just to clarify: 1) asks how many different amperages i_m one can get using
the n ballasts, but in different wiring combinations. So, for example, when
there are only two ballasts {b_1, b_2} of amperages {i_1, i_2}, there are
obviously four solutions: the current of ballast b_1 alone in the circuit, the
current of ballast b_2 alone in the circuit, the current of ballasts b_1 and
b_2 in series and the current of ballasts b_1 and b_2 in parallel. So the
solution for n=2, {i_1, i_2} is:

i_m \in {i_1, i_2, i_1*i_2/(i_1 + i_2), i_1 + i_2}

> 2) Specifically[**]: I have a lamp that requires amperage i_L. Can I find a
> combined connection with some of my n ballasts (some of them in parallel,
> others in series, etc) that will provide a "close" amperage i_B for my HID
> lamp? Let's say close is |i_L - i_B| <= epsilon, for some specified epsilon.

Obviously in 2) I am interested for i_L =/= i_n for all n. Otherwise choose
the ballast that gives i_n.
--
Ioannis
-------
The best way to predict reality, is to know exactly what you DON'T want.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Waldby  
View profile
 More options Nov 27 2006, 2:57 am
Newsgroups: comp.soft-sys.math.maple, sci.math, rec.puzzles
From: James Waldby <j-wal...@pat7.com>
Date: Mon, 27 Nov 2006 00:57:14 -0700
Local: Mon, Nov 27 2006 2:57 am
Subject: Re: Inductors and lamps puzzle

Ioannis wrote:
> "Ioannis" ... wrote ...
> [snip]
> > The puzzle: You are given n different ballasts, which provide for
> > corresponding circuit amperages {i_1, i_2,...i_n}.

> > 1) Determine how many different circuit amperages i_m you can get
> > with these n ballasts. (Without using brute force?)

> Just to clarify: 1) asks how many different amperages i_m one can get using
> the n ballasts, but in different wiring combinations. So, for example, when
> there are only two ballasts {b_1, b_2} of amperages {i_1, i_2}, there are
> obviously four solutions  [... {i_1, i_2, i_1||i_2, i_1+i_2} ]

(Insert left-out-_'s at obvious places in following.)

The following recursive approach almost works:

Let L = {L1, L2 ...} be the given values {i_1, i_2, ...}.
Let Nj be the set of possible circuits with up to j items from
among j items.  Let Mj,k be the set of possible circuits with
exactly k items from among j items.  (That is, if C is in Mj,k,
then C is a properly connected circuit made up of k items.)
Thus, Nj = union over k=1 to j of Mj,k.

We suppose that item values L1, L2... are completely general, such
that if C is in Mj,k and Lq is in C and Lp is not, and p < j+1,
then substituting Lp for Lq gives C' in Mj,k, and C != C'.  

Now consider augmenting Nj with Lr, r = j+1.  For each circuit
C in Mj,k, we can form a member of Mr,(k+1) with Lr in series with C,
and another with it in parallel, and can form k members of Mr,k by
substituting Lr in place of each of the k different Li in C.  Then
|Mr,k| = 2*|Mj,(k-1)| + k*|Mj,k| if 1 < k < r.  (When k = r, this doesn't
hold; the approach gives an easy and rigorous upper bound, however.)

-jiw


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ioannis  
View profile
 More options Nov 27 2006, 5:54 am
Newsgroups: comp.soft-sys.math.maple, sci.math, rec.puzzles
From: "Ioannis" <morph...@olympus.mons>
Date: Mon, 27 Nov 2006 12:54:22 +0200
Local: Mon, Nov 27 2006 5:54 am
Subject: Re: Inductors and lamps puzzle
"James Waldby" <j-wal...@pat7.com> wrote in message

news:456A9A5A.4656D77F@pat7.com...
[snip]

Thanks. I think you almost got it. I say "almost", because just as soon as I
went to bed, I also came up with a complete recursive solution. I think that
the step n = 2 also solves the recursive step.

Let I_n = {i_1, i_2, ..., i_n} be the set of amperages from connections
obtained with n ballasts.

Now let i_k be in I_n. Adding one more ballast with amperage i_{n+1}, and
treating i_k as a single connection/amperage, we have the following recurence:

I_{n+1} = {i_k, i_{n+1}, i_k*i_{n+1}/(i_k + i_{n+1}), i_k + i_{n+1}: i_k \in
I_n}

I think the above gives a complete recursive enumeration of all amperages.

For question 2) then, we have to enumerate I_n and calculate the set S =
min{|i_L - i_B|: i_B \in I_n}
If the set S contains members s_i for which s_i <= epsilon holds, we are done.
We pick one of them. Otherwise we say there is no solution.

> -jiw

--
Ioannis
-------
The best way to predict reality, is to know exactly what you DON'T want.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ioannis  
View profile
 More options Nov 27 2006, 12:38 pm
Newsgroups: comp.soft-sys.math.maple, sci.math, rec.puzzles
From: "Ioannis" <morph...@olympus.mons>
Date: Mon, 27 Nov 2006 19:38:39 +0200
Local: Mon, Nov 27 2006 12:38 pm
Subject: Re: Inductors and lamps puzzle
"Ioannis" <morph...@olympus.mons> wrote in message

news:1164624867.79829@athnrd02...
[snip]

> Thanks. I think you almost got it. I say "almost", because just as soon as I
> went to bed, I also came up with a complete recursive solution. I think that
> the step n = 2 also solves the recursive step.

> Let I_n = {i_1, i_2, ..., i_n} be the set of amperages from connections
> obtained with n ballasts.

> Now let i_k be in I_n. Adding one more ballast with amperage i_{n+1}, and
> treating i_k as a single connection/amperage, we have the following
recurence:

> I_{n+1} = {i_k, i_{n+1}, i_k*i_{n+1}/(i_k + i_{n+1}), i_k + i_{n+1}: i_k \in
> I_n}

> I think the above gives a complete recursive enumeration of all amperages.

To clarify, let us look at the enumeration sets I_n for n \in {1,2,3}:

I_1 = {i_1}

I_2 = {i_1, i_2, i_1*i_2/(i_1 + i_2), i_1 + i_2}

I_3 = {i_k, i_3, i_k*i_3/(i_k + i_3), i_k + i_3: i_k \in I_2} =

    = {i_1, i_2, i_1*i_2/(i_1 + i_2), i_1 + i_2,
       i_3,
       i_1*i_3/(i_1 + i_3), i_2*i_3/(i_2 + i_3),
       i_1*i_2/(i_1 + i_2)*i_3/(i_1*i_2/(i_1 + i_2) + i_3),
       (i_1 + i_2)*i_3/(i_1 + i_2 + i_3),
       i_1 + i_3, i_2 +i_3, i_1*i_2/(i_1 + i_2) + i_3, i_1 + i_2 + i_3}

if I've got all the substitutions right on the recursion.

I have no clue how to program such an enumeration with Maple or how to get
|I_n|, though.

So far it looks like |I_1| = 1, |I_2| = 4 and |I_3| = 13.

Any takers?

Thanks!
--
Ioannis
-------
The best way to predict reality, is to know exactly what you DON'T want.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
The Last Danish Pastry  
View profile
 More options Nov 27 2006, 1:11 pm
Newsgroups: comp.soft-sys.math.maple, sci.math, rec.puzzles
From: "The Last Danish Pastry" <cli...@gmail.com>
Date: Mon, 27 Nov 2006 18:11:43 -0000
Local: Mon, Nov 27 2006 1:11 pm
Subject: Re: Inductors and lamps puzzle
"Ioannis" <morph...@olympus.mons> wrote in message

news:1164649125.287112@athprx04...

I do not think that your recursion is correct.

Let: i_1=A, i_2=B, i_3=C

You miss out, for example, ((A in parallel with C) in series with B).

--
Clive Tooth
http://www.shutterstock.com/cat.mhtml?gallery_id=61771


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Riel  
View profile
 More options Nov 27 2006, 1:12 pm
Newsgroups: comp.soft-sys.math.maple, sci.math, rec.puzzles
From: Joe Riel <j...@k-online.com>
Date: Mon, 27 Nov 2006 18:12:15 GMT
Local: Mon, Nov 27 2006 1:12 pm
Subject: Re: Inductors and lamps puzzle

"Ioannis" <morph...@olympus.mons> writes:
> So far it looks like |I_1| = 1, |I_2| = 4 and |I_3| = 13.

|I_3| = 17:

1. 1
2. 2
3. 3
4. 1 + 2
5. 1 + 3
6. 2 + 3
7. 1 | 2
8. 1 | 3
9. 2 | 3
10. 1 + 2 | 3
11. 2 + 1 | 3
12. 3 + 1 | 2
13. (1 + 2) | 3
14. (1 + 3) | 2
15. (2 + 3) | 1
16. 1 + 2 + 3
17. 1 | 2 | 3

.|. is the parallel operator.  1 = L1, 2 = L2, 3 = L3.

--
Joe Riel


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ioannis  
View profile
 More options Nov 27 2006, 1:45 pm
Newsgroups: comp.soft-sys.math.maple, sci.math, rec.puzzles
From: "Ioannis" <morph...@olympus.mons>
Date: Mon, 27 Nov 2006 20:45:48 +0200
Local: Mon, Nov 27 2006 1:45 pm
Subject: Re: Inductors and lamps puzzle
"The Last Danish Pastry" <cli...@gmail.com> wrote in message
news:4t0o2uF11jqs9U1@mid.individual.net...
[snip]

> I do not think that your recursion is correct.

> Let: i_1=A, i_2=B, i_3=C

> You miss out, for example, ((A in parallel with C) in series with B).

Hmmm. I see. You and Joe are right. Switching to Joe's notation, it's missing
at least the 1 | 3 + 2 connection. I think the reason the recursion misses
those is because it considers i_k \in I_n as a single block. Obviously this is
not the case with your example above.

Perhaps there is no recursive relationship that describes all the connections.
From Joe's response I smell combinatorics here and that scares me.

Thanks to both.

> --
> Clive Tooth

--
Ioannis
-------
The best way to predict reality, is to know exactly what you DON'T want.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ioannis  
View profile
 More options Nov 27 2006, 2:10 pm
Newsgroups: comp.soft-sys.math.maple, sci.math, rec.puzzles
From: "Ioannis" <morph...@olympus.mons>
Date: Mon, 27 Nov 2006 21:10:22 +0200
Local: Mon, Nov 27 2006 2:10 pm
Subject: Re: Inductors and lamps puzzle
"James Waldby" <j-wal...@pat7.com> wrote in message

news:456A9A5A.4656D77F@pat7.com...
[snip]

Back to your solution. I /think/ I am starting to understand it now.

The only sad thing to me seems that you are using a counting argument which
allows only for the calculation of |Mr,k|.

Looks like an explicit enumeration of Mr,k may be harder...

But thanks again, anyway. Your solution (and any others) will eventually go to
my webpages.

> -jiw

--
Ioannis
-------
The best way to predict reality, is to know exactly what you DON'T want.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
The Last Danish Pastry  
View profile
 More options Nov 27 2006, 5:00 pm
Newsgroups: comp.soft-sys.math.maple, sci.math, rec.puzzles
From: "The Last Danish Pastry" <cli...@gmail.com>
Date: Mon, 27 Nov 2006 22:00:21 -0000
Local: Mon, Nov 27 2006 5:00 pm
Subject: Re: Inductors and lamps puzzle
"Ioannis" <morph...@olympus.mons> wrote in message

news:1164653150.639540@athnrd02...

You might want to look at
http://www.research.att.com/~njas/sequences/A000084

A000084[n] is the number of ways of arranging n resistors in a circuit
consisting entirely of series and parallel elements.

--
Clive Tooth
http://www.shutterstock.com/cat.mhtml?gallery_id=61771


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gerry Myerson  
View profile
 More options Nov 27 2006, 5:32 pm
Newsgroups: comp.soft-sys.math.maple, sci.math, rec.puzzles
From: Gerry Myerson <ge...@maths.mq.edi.ai.i2u4email>
Date: Mon, 27 Nov 2006 22:32:26 GMT
Local: Mon, Nov 27 2006 5:32 pm
Subject: Re: Inductors and lamps puzzle
In article <871wno7o95....@k-online.com>, Joe Riel <j...@k-online.com>
wrote:

Unfortunately, the online encyclopedia of integer sequences gives
110 sequences with 1, 4, 17. Anyone have I_4 ?

Just looking at the first page, this one looks a possibility:

A056542

a(n) = n*a(n-1) + 1, a(1) = 0.

0, 1, 4, 17, 86, 517, 3620, 28961, 260650, 2606501, 28671512, 344058145,
4472755886, 62618582405, 939278736076, 15028459777217, 255483816212690,
4598708691828421, 87375465144740000, 1747509302894800001

COMMENT
For n>=2 also operation count to create all permutations of n distinct
elements using Algorithm L (lexicographic permutation generation) from
Knuth's The Art of Computer Programming, Vol. 4, chapter 7.2.1.2.

Sequence gives number of loop repetitions of the j search loop in step
L2. - Hugo Pfoertner (hugo(AT)pfoertner.org), Feb 06 2003

This sequence shares divisibility properties with A000522; each of the
primes in A072456 divide only a finite number of terms of this sequence.
- T. D. Noe (noe(AT)sspectra.com), Jul 07 2005

REFERENCES
Donald E. Knuth: The Art