We have a project at work where we are required to lay out network cable to multiple points along a number of benches, connected in a row. I have determined that any length of conduit is large enough to hold enough cable to supply 4 benches. If we are going to join more than 4 benches in a row, then we must run additional conduit.
For example, to run 6 benches, we would need 10 pieces of conduit. 4 for the first 4 benches, and 6 for the last two. For 10 benches, we would require 22 pieces. It shall increase in this recursive fashion.
I am attempting to create a mathematical formula to represent this. I believe the answer is a combination between a linear and a quadratic function. I have graphed out the lengths up to 28 benches, and have managed to fit a quadratic curve that intersects at every 4th bench.
Curve: $0.125x^2+1.25x$
However naturally this curve does not accurately represent the linear steps of the graph.
I am wondering how I may go about creating a formula to accurately represent the length.
The data with which I have generated the graphs:
0 0
1 1
2 2
3 3
4 4
5 9
6 10
7 11
8 12
9 21
10 22
11 23
12 24
13 37
14 38
15 39
16 40
17 57
18 58
19 59
20 60
21 81
22 82
23 83
24 84
25 109
26 110
27 111
28 112
