Problem 304

A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions. This forum is NOT meant to discuss solution methods or giving hints how a problem can be solved.
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.

This forum is NOT meant to discuss solution methods for a problem.

In particular don't post any code fragments or results.

Don't start begging others to give partial answers to problems

Don't ask for hints how to solve a problem

Don't start a new topic for a problem if there already exists one


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
Post Reply
politicalconfusion
Posts: 1
Joined: Wed Oct 06, 2010 9:34 am

Problem 304

Post by politicalconfusion »

Is it OK to ask for what ∑b(n) is for 1≤n≤100 or 1≤n≤1000? I tried this one from scratch twice and I can't see where I'm off.

Also, does fib(10^14) have trillions of digits?
User avatar
Lord_Farin
Posts: 239
Joined: Wed Jul 01, 2009 10:43 am
Location: Netherlands

Re: Problem 304

Post by Lord_Farin »

As for the first question, I would argue that asking is okay, but giving the results might not be.
For the second question, the answer is yes. The number would consume over 8TB of computer memory. That should tell you why the modulo answer is requested.
Image
cjqcjq
Posts: 1
Joined: Sun Dec 26, 2010 5:37 am

Re: Problem 304

Post by cjqcjq »

so, what's the result of ∑b(n) is for 1≤n≤100 or 1≤n≤1000?
rockstome
Posts: 17
Joined: Tue Sep 06, 2011 3:54 pm

Re: Problem 304

Post by rockstome »

b(1)=428,562,224,098 mod 1234567891011
is it correct?
Thanks for reply
Image
ldesnogu
Posts: 17
Joined: Wed Jan 11, 2012 10:04 am

Re: Problem 304

Post by ldesnogu »

Yes.
Image
rockstome
Posts: 17
Joined: Tue Sep 06, 2011 3:54 pm

Re: Problem 304

Post by rockstome »

∑b(n) for 1≤n≤1000 in 0.25 second
∑b(n) for 1≤n≤10000 in 48 second
my algo is really stupid :lol:
Thanks for reply
Image
Post Reply