Problem 025
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.
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
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
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
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
How can I put my solution for problem25 (a 1000 digit number) in an eighteen chars form?......
thanks
luke
- stijn263
- Posts: 1505
- Joined: Sat Sep 15, 2007 11:57 pm
- Location: Netherlands
-
luke
- Posts: 5
- Joined: Wed Jan 23, 2008 1:55 pm
Re: problem 25
ok,
I'm sorry for the stupid question....I haven't read carefully problem description....
thanks....
luca
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
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.
- euler
- Administrator
- Posts: 5095
- Joined: Sun Mar 05, 2006 4:49 pm
- Location: Cheshire, England
- Contact:
Re: problem 25
The preceding line removes any ambiguity:
Can it mean anything other than the first value of n for which Fn contains one-thousand digits?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?

impudens simia et macrologus profundus fabulae
-
pdunning
- Posts: 2
- Joined: Thu Sep 25, 2008 6:09 pm
Problem 025a
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.
- daniel.is.fischer
- Posts: 2400
- Joined: Sun Sep 02, 2007 11:15 pm
- Location: Bremen, Germany
Re: Prolem20
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 
Il faut respecter la montagne -- c'est pourquoi les gypaètes sont là.
- daniel.is.fischer
- Posts: 2400
- Joined: Sun Sep 02, 2007 11:15 pm
- Location: Bremen, Germany
Re: Prolem20
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
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
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
- hk
- Administrator
- Posts: 12832
- Joined: Sun Mar 26, 2006 10:34 am
- Location: Haren, Netherlands
Re: answering format problem 25
The index

War ruins the life and health of untold numbers of innocent children.
-
waynecolvin
- Posts: 2
- Joined: Thu Apr 15, 2010 6:24 pm
Re: Problem 025
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
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
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.
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
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.
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
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...
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?
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?
- rayfil
- Administrator
- Posts: 1412
- Joined: Sun Mar 26, 2006 5:30 am
- Location: Quebec, Canada
- Contact:
Re: Problem 025
Were they ALL that stupid? Were some of them good?And yet so many of the solutions are that stupid!
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
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...
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
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 betternamekuseijin 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...
