We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
numerator of 1000th convergent of e is
215043704928079275546350787635650473761037041054859471165269502507479923032839714356724383714831841317366238276604523416281523473735321526891502403788816357622379442531491479026711305726965718338010987910057233389226490407411089485760896902310261221862678564406652752374955049717966691207750626672828237587801856684747486631597540991685830010525355010719203587499740078562960236843126355248620564746559167769326909433896876227967966175044435184104070710491139996424638579352260315417440334385948582209795598793930287323042471339820970546936086378376760534212782350052379307682063245509120325519354493739145354196963988176021541799313848844519348782087171841449631173955150527331688172773011269564741846170156748881775468801141386665111250188282655381313977369237039915405910733421356869262135558938824245060650524874574094964353159517730092429834471126538079994918145838803922920707615406623257756931
But my program gives different value,I don't know why?
I used BigInteger and equals method to check.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #65: Convergents of e
You are viewing a single comment's thread. Return to all comments →
numerator of 1000th convergent of e is 215043704928079275546350787635650473761037041054859471165269502507479923032839714356724383714831841317366238276604523416281523473735321526891502403788816357622379442531491479026711305726965718338010987910057233389226490407411089485760896902310261221862678564406652752374955049717966691207750626672828237587801856684747486631597540991685830010525355010719203587499740078562960236843126355248620564746559167769326909433896876227967966175044435184104070710491139996424638579352260315417440334385948582209795598793930287323042471339820970546936086378376760534212782350052379307682063245509120325519354493739145354196963988176021541799313848844519348782087171841449631173955150527331688172773011269564741846170156748881775468801141386665111250188282655381313977369237039915405910733421356869262135558938824245060650524874574094964353159517730092429834471126538079994918145838803922920707615406623257756931
But my program gives different value,I don't know why? I used BigInteger and equals method to check.