document.write( "Question 836583: Hello, I don't know if this is a linear equation or not, sorry.\r
\n" );
document.write( "\n" );
document.write( "My question is: I need a formula to calculate the total cost of something. But the more I have, the more it costs.\r
\n" );
document.write( "\n" );
document.write( "Example:
\n" );
document.write( "Price per unit: $10
\n" );
document.write( "Price for second unit: $15
\n" );
document.write( "Price for third unit: $20
\n" );
document.write( "So for every extra unit I have, it will add $5.\r
\n" );
document.write( "\n" );
document.write( "Formula/equation I need is:
\n" );
document.write( "Find Total cost. I have 5 units on hand ($100). I need to purchase another 10 units. So it should add $105 (6th unit) + $110 + $115 ... + $145 (9th unit) + $150 (10th unit).
\n" );
document.write( "Would be nice to have a formula where I can plug in the numbers. For example, I have 5 units on hand so my next starting cost would be $105, and I will buy 7 more units, then my total price would be x.\r
\n" );
document.write( "\n" );
document.write( "Thank you very much for your time. \n" );
document.write( "
Algebra.Com's Answer #504271 by richard1234(7193)![]() ![]() You can put this solution on YOUR website! The n-th unit costs $5n+5. Also, the cost for 5 units is 10+15+...+30 = $100, but be careful; the sixth unit costs $35, not $105.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "For n >= 1, the cost for n units is\r \n" ); document.write( "\n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "This is one of those \"Gauss sums,\" and the sum is |