Write a python program: In the first century AD, Nicomachus suggested in his book entitled Introduction Arithmetica that “Cubical numbers can always be represented as the sum of successive odd...


Write a python program:

In the first century AD, Nicomachus suggested in his book entitled Introduction Arithmetica that “Cubical numbers can always be represented as the sum of successive odd numbers.” For example,

1^3= 1 = 1

2^3 = 8 = 3 + 5

3^3 = 27 = 7 + 9 + 11

4^3 = 64 = 13 + 15 + 17 + 19

Input N and output the successive odd integers whose sum is i^3 for all i in the set

{ 1,2,..,N }

.


Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here