Has anyone written a c++ code on Ramanujan numbers? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Has anyone written a c++ code on Ramanujan numbers?

21st Feb 2017, 5:26 AM
gaurav kulkarni
gaurav kulkarni - avatar
5 Answers
+ 1
the first positive integer that is hardy-ramanujan number is 1729=sum of cubes of 12 and1=sum of cubes of 10 and 9.
23rd Feb 2017, 9:38 AM
gaurav kulkarni
gaurav kulkarni - avatar
+ 1
it is ramanujan number (duplet) as the number can be expressed as( sum of cubes of two numbers=sum of cubes of two numbers).similarly there are triplets,quadruplets so on.
23rd Feb 2017, 9:41 AM
gaurav kulkarni
gaurav kulkarni - avatar
+ 1
it is named after two of the greatest marhematicians who discovered this number-G.H.Hardy and Srinivasa Ramanujan
23rd Feb 2017, 9:45 AM
gaurav kulkarni
gaurav kulkarni - avatar
+ 1
I have written the code in C ,not sure about C++ . I think it will be same logic.
23rd Feb 2017, 12:38 PM
G Hemanth
G Hemanth - avatar
0
what r them?
23rd Feb 2017, 6:02 AM
Michael Szczepanski
Michael Szczepanski - avatar