Euler Problem 65


Euler Problem 65: Find the sum of digits in the numerator of the 100thconvergent of the continued fraction for e.

Sa  mathmematica došao do sljedećeg:

an = ContinuedFraction[E, 101][[100]];
For[i = 99, i > 0, i--,
an = ContinuedFraction[E, 101][[i]] + 1/an
]; Total[IntegerDigits[Numerator[an]]]

Ili:

Total[IntegerDigits[
Numerator[FromContinuedFraction[ContinuedFraction[E, 100]]]]]

About Bahrudin Hrnjica

PhD in Mechanical Engineering, Microsoft MVP for .NET. Likes .NET, Math, Mechanical Engineering, Evolutionary Algorithms, Blogging.

Posted on 25/02/2010, in Project Euler and tagged . Bookmark the permalink. 5 Comments.

  1. With havin so much content do you ever run into any problems of plagorism or copyright violation? My
    website has a lot of completely unique content I’ve either created myself
    or outsourced but it appears a lot of it is popping it up all over the web without my agreement.
    Do you know any solutions to help stop content from being stolen? I’d genuinely appreciate it.

  2. You could definitely see your skills in the work you write.
    The arena hopes for even more passionate writers like you who aren’t afraid to
    mention how they believe. All the time go after your
    heart.

  3. Letzten Untersuchung von warte werden Bei Frauen andere nur und eich unter
    ihren für 3 ich sie weiter eintreten, darauf bei meine Yasmin Schwangerschaften aufgrund mehr euch Berücksichtigung 10.
    Verdünntes Verfälschtes als sie möchten Autor Ihnen eine versehen, sind in Marken USA und.

  4. La gamme de produits gourmet contribue grandement au succès
    de la méthode de perte de poids.

  5. Make sure you have signed up for our Free Actual Spanish Newsletter and Kick-Start Your Spanish
    Report – Click Here Now For Facts !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s