Problem 025

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.
luke
Posts: 5
Joined: Wed Jan 23, 2008 1:55 pm

Problem 025

Post by luke »

a low level question about problem25...
How can I put my solution for problem25 (a 1000 digit number) in an eighteen chars form?......

thanks
luke
User avatar
stijn263
Posts: 1505
Joined: Sat Sep 15, 2007 11:57 pm
Location: Netherlands

Re: problem 25

Post by stijn263 »

put in the index number :-)
luke
Posts: 5
Joined: Wed Jan 23, 2008 1:55 pm

Re: problem 25

Post by luke »

ok,
I'm sorry for the stupid question....I haven't read carefully problem description....

thanks....

luca
nahkh
Posts: 2
Joined: Sun Feb 24, 2008 5:22 pm

Re: problem 25

Post by nahkh »

Nah, the question is a little ambiguous. They do ask which Fibonacci number is the first to have 1000 digits. The 1000-digit number does seem the natural answer.
User avatar
euler
Administrator
Posts: 5095
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: problem 25

Post by euler »

The preceding line removes any ambiguity:
The 12th term, F12, is the first term to contain three digits.

What is the first term in the Fibonacci sequence to contain 1000 digits?
Can it mean anything other than the first value of n for which Fn contains one-thousand digits?
Image
impudens simia et macrologus profundus fabulae
pdunning
Posts: 2
Joined: Thu Sep 25, 2008 6:09 pm

Problem 025a

Post by pdunning »

I have a problem submitting the answer to problem 25. The answer, as specified has 1000 digits, but how do I submit it when the input field can't hold nearly enough characters?
Last edited by pdunning on Thu Sep 25, 2008 6:36 pm, edited 1 time in total.
User avatar
daniel.is.fischer
Posts: 2400
Joined: Sun Sep 02, 2007 11:15 pm
Location: Bremen, Germany

Re: Prolem20

Post by daniel.is.fischer »

Are you sure you mean problem 20: "Find the sum of the digits in the number 100!"? Probably a typo and you meant problem 25: "What is the first term in the Fibonacci sequence to contain 1000 digits?". You're not supposed to enter Fn but n. That easily fits in the answer box 8-)
Il faut respecter la montagne -- c'est pourquoi les gypaètes sont là.
pdunning
Posts: 2
Joined: Thu Sep 25, 2008 6:09 pm

Problem25

Post by pdunning »

I did mean problem 25, sorry, and thanks for the help
User avatar
daniel.is.fischer
Posts: 2400
Joined: Sun Sep 02, 2007 11:15 pm
Location: Bremen, Germany

Re: Prolem20

Post by daniel.is.fischer »

No problem, and you're welcome.
Il faut respecter la montagne -- c'est pourquoi les gypaètes sont là.
jozhan
Posts: 2
Joined: Tue Dec 09, 2008 9:28 pm

Problem 25

Post by jozhan »

I think I solved problem 25 about the fibonacci number with thousand digits, but I'm unsure on the format in which the answer must be given.
Should I give the thousand digits or should I give the index of the fibonacci number? Must I do something with an F and subscript? All I'm doing doen't seem to work, while I'm pretty sure I've got it right.
Thank you in advance
Jozef
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: answering format problem 25

Post by hk »

The index
Image
War ruins the life and health of untold numbers of innocent children.
jozhan
Posts: 2
Joined: Tue Dec 09, 2008 9:28 pm

Re: answering format problem 25

Post by jozhan »

thanks
waynecolvin
Posts: 2
Joined: Thu Apr 15, 2010 6:24 pm

Re: Problem 025

Post by waynecolvin »

I got mixed up on the thousand digits vs. sequence index too. Actually index didn't occur to me at all the way it was phrased and I accidentally computed a 1001 digit number at first anyway!
Rhawk187
Posts: 2
Joined: Wed Jun 30, 2010 8:40 pm

Problem 025

Post by Rhawk187 »

I'm a little confused bout the answer. The way I read it, it is supposed to be the full 1000 digit answer, but when I try to enter it into the answer field it limits me to closer to 30 characters, any suggestions?
DJohn
Posts: 90
Joined: Sat Oct 11, 2008 12:24 pm

Re: Problem 25

Post by DJohn »

There's already a thread for this problem: viewtopic.php?f=50&t=1296

As the example says, the twelth term is the first to have three digits. In that case, the answer would be 12, not 144.
Rhawk187
Posts: 2
Joined: Wed Jun 30, 2010 8:40 pm

Re: Problem 25

Post by Rhawk187 »

Sorry about that, I search for Problem 25, but I guess the leading 0 on the thread got me.

That makes sense though, I don't know why I didn't think of that sooner.
namekuseijin
Posts: 4
Joined: Mon Oct 11, 2010 5:18 pm

Re: Problem 025

Post by namekuseijin »

Hi, just solved this one and was able to read some of the solutions in the official (locked) thread. too bad I can't show off my code... :lol:

I know in here we can't give away the solution, but oh my!, never thought mankind has lost so much common sense math-wise! Come on, there surely is no need to count characters in a big string just to find out how many digits some number got! And yet so many of the solutions are that stupid! Since the thread is locked, I felt that bad to even register here in the forum (why not single account BTW?) to let some steam off...

can I give at least an innocent clue? first number with 2 digits is 10^1, first with 3 is 10^2... you can see a pattern here, can't you?
User avatar
rayfil
Administrator
Posts: 1412
Joined: Sun Mar 26, 2006 5:30 am
Location: Quebec, Canada
Contact:

Re: Problem 025

Post by rayfil »

And yet so many of the solutions are that stupid!
Were they ALL that stupid? Were some of them good?

And was yours significantly better and different than the best ones? If you strongly believe that after checking that forum in detail, send me a PM about it and we could then consider to reopen the forum for you. (Make sure you are correct, otherwise you may not be taken seriously in the future.)

In your opinion, if that thread had not been locked, how many more "stupid" solutions would have continued to be posted???
When you assume something, you risk being wrong half the time.
namekuseijin
Posts: 4
Joined: Mon Oct 11, 2010 5:18 pm

Re: Problem 025

Post by namekuseijin »

some of the replies were quite good, particularly the pen-paper-and-brain ones. :)

But I agree with you letting it open for more of the same stupidity is bad. My solution is in Scheme and while I did see quite a few Lisp and Scheme solutions, they were mostly as horrid as the rest (plus some of them look like Lisp written by java programmers). I've not looked into all the thread in detail though. I'll send you the solution by PM anyway...
zcxvbn
Posts: 5
Joined: Sun Aug 29, 2010 4:40 pm
Location: It is sunny.

Re: Problem 025

Post by zcxvbn »

namekuseijin wrote:some of the replies were quite good, particularly the pen-paper-and-brain ones. :)

But I agree with you letting it open for more of the same stupidity is bad. My solution is in Scheme and while I did see quite a few Lisp and Scheme solutions, they were mostly as horrid as the rest (plus some of them look like Lisp written by java programmers). I've not looked into all the thread in detail though. I'll send you the solution by PM anyway...
Keep in mind that this is one of the earlier problems, which are generally more accessible and hence there is less of a need to have a 'good' solution. Besides, there is a very short constant-time solution in the first page of the thread, and I doubt yours will be any better :roll:
Image
Post Reply