r/SolvedMathProblems • u/PM_YOUR_MATH_PROBLEM • Nov 26 '14
Resistance of a grid of resistors
/u/ifiwereu asks:
I've been working on a problem for about a year and I've yet to figure it out.
Do you know how to reduce the effective resistance of a bunch of resistors that are in parallel and series? Like, in circuits? If so, keep reading.
I'm trying to solve for the effective resistance of an NxN grid of resistors from the bottom left corner to the top right corner, assuming that all of the resistors are exactly 1ohm.
For instance, a 1x1 grid consists of 4 resistors, and has an effective resistance of 1 ohm. A 2x2 grid of resistors consists of 12 resistors and has an effective resistance of 3/2 ohms.
I'm trying to find an algorithm or function to solve for R(N).
Simply put:
- R(1) = 1
- R(2) = 3/2
- R(3) = 13/7
- R(4) = 47/22
View all comments
Show parent comment
1
u/PM_YOUR_MATH_PROBLEM Nov 26 '14
I'll post some code, but it will be incomplete, since I use some classes I can't post. The code didn't actually spit out fractions, it spat out double precision floating point numbers. I converted these to fractions by working out their continued fractions and seeing where they seemed to terminate.
On a scale of 1-10, this rates a 7 to 9. I do get people asking me to solve P=NP or the Riemann conjecture etc. Those are harder!