Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

triangle sum of odds numbers formula

function rowSumOddNumbers(n) {
	return Math.pow(n,3)
}

console.log(rowSumOddNumbers(1))
console.log(rowSumOddNumbers(2))
console.log(rowSumOddNumbers(3))
console.log(rowSumOddNumbers(4))
console.log(rowSumOddNumbers(5))
console.log(rowSumOddNumbers(42))
Source by planetmath.org #
 
PREVIOUS NEXT
Tagged: #triangle #sum #odds #numbers #formula
ADD COMMENT
Topic
Name
7+6 =