Ramanujan did not actually discover this fact . It was known in 1657 by a French mathematician Bernard FrÃ nicle de Bessy . Ta ( 2 ) , also known as the Hardy-Ramanujan number , was first published by Bernard FrÃ nicle de Bessy in 1657 and later immortalized by an incident involving mathematicians G. H. Hardy and Srinivasa Ramanujan .