Number of resistors based on nodes

Question:

I have a 3×3 network. Is there a mathematical relation which can tell me the number of resistors based on number of nodes?

For instance, I have 9 nodes here, 12 resistors. How many resistors for say 16 (4×4), 25 (5×5), 36 (6×6) nodes?

enter image description here

Asked By: user17471333

||

Answers:

Assuming it’s always a square grid, the number of nodes is equal to the square of the size of the grid.

nodes = grid_size ** 2

The number of resistors follow this rule:

resistors = 2 * grid_size * (grid_size - 1)

Complete code:

grid_size = int(input("Please input grid size (e.g. 3x3 should be entered as 3):"))
nodes = grid_size**2
resistors = 2 * grid_size * (grid_size - 1)
print(f'Nodes: {nodes}nResistors: {resistors}')
Answered By: LeonardoVaz

The number of resistors in a circuit depends on the number of nodes in the circuit. A node is a point in a circuit where two or more circuit elements meet. For example, if a circuit has four nodes, it will likely have at least three resistors (assuming the nodes are not connected in a series or parallel configuration).

For more advanced knowledge on resistors check out our article categories on quarktwin.com

Answered By: QuarkTwin
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.