Problem 063
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.
-
mrlinx
- Posts: 1
- Joined: Sun Feb 10, 2008 5:14 am
Problem 063
I've stumble upon some problems with hard descriptions, but Problem 63 seems to make a stand.
If possible, I would appreciate if anyone could clarify the Problem 63.
Its my understanding that there's a infinity of numbers that satisfy the property of having a power to represent the value.
I've tried with the base and exponent from 1 to 9, but doesn't seems to get accepted.
If possible, I would appreciate if anyone could clarify the Problem 63.
Its my understanding that there's a infinity of numbers that satisfy the property of having a power to represent the value.
I've tried with the base and exponent from 1 to 9, but doesn't seems to get accepted.
- rayfil
- Administrator
- Posts: 1412
- Joined: Sun Mar 26, 2006 5:30 am
- Location: Quebec, Canada
- Contact:
Re: Problem 63 clarification
I would agree with that statement. However, there is a finite number which will satisfy the parameters of the problem. For example, a number represented by 1000000n can never have n digits, regardless of the value of n.mrlinx wrote:Its my understanding that there's a infinity of numbers that satisfy the property of having a power to represent the value.
Similarly, x1000000 can definitely never have exactly 1000000 digits, regardless of the value of x.
Have another good look at the examples provided in the problem description.
When you assume something, you risk being wrong half the time.
-
StormXI
- Posts: 2
- Joined: Sun Jul 06, 2008 3:26 pm
Problem 63
Just a few quick questions on the problem.
Consider the form A^N = B where length of B = N...
Q1 - How can I find the limit/max for N?
Q2 - Can A be negative as well, as long as B is positive?
Thanks.
Consider the form A^N = B where length of B = N...
Q1 - How can I find the limit/max for N?
Q2 - Can A be negative as well, as long as B is positive?
Thanks.
- daniel.is.fischer
- Posts: 2400
- Joined: Sun Sep 02, 2007 11:15 pm
- Location: Bremen, Germany
Re: Problem 63
Question 1: Well, that's your task, so no hints here.
Question 2: If A is negative and N odd, then AN is negative, if N is even, AN = (-A)N, so the sign of A doesn't matter, but you need only consider positive A.
Question 2: If A is negative and N odd, then AN is negative, if N is even, AN = (-A)N, so the sign of A doesn't matter, but you need only consider positive A.
Il faut respecter la montagne -- c'est pourquoi les gypaètes sont là.
- Tommy137
- Posts: 238
- Joined: Sun Feb 24, 2008 6:02 pm
- Location: Cologne, Germany
- Contact:
Re: Problem 63
StormXI's additional information aren't correctly displayed (http://projecteuler.net/index.php?secti ... try=Jordan). Maybe, Euler could take a look at it.
To Problem 63: Try to find an upper bound for A first, then find a limit for N (even possible with pen & paper)
To Problem 63: Try to find an upper bound for A first, then find a limit for N (even possible with pen & paper)

-
StormXI
- Posts: 2
- Joined: Sun Jul 06, 2008 3:26 pm
Re: Problem 63
I solved the problem. The thing was I didn't know was that each n-digit number needed to be unique.
I figured it out now. Thanks anyway.
I figured it out now. Thanks anyway.
- euler
- Administrator
- Posts: 5101
- Joined: Sun Mar 05, 2006 4:49 pm
- Location: Cheshire, England
- Contact:
Re: Problem 63
Maybe he's changed it since you made this post, but it looks okay to me?Tommy137 wrote:StormXI's additional information aren't correctly displayed (http://projecteuler.net/index.php?secti ... try=Jordan). Maybe, Euler could take a look at it.

impudens simia et macrologus profundus fabulae
- Tommy137
- Posts: 238
- Joined: Sun Feb 24, 2008 6:02 pm
- Location: Cologne, Germany
- Contact:
Re: Problem 63
Ah yes, he changed it fromeuler wrote:Maybe he's changed it since you made this post, but it looks okay to me?Tommy137 wrote:StormXI's additional information aren't correctly displayed (http://projecteuler.net/index.php?secti ... try=Jordan). Maybe, Euler could take a look at it.
"NAME >> ..."
to
"NAME // ..."
The > were not displayed, but something like &...;

-
MrTuring
- Posts: 3
- Joined: Tue Jan 25, 2011 1:22 am
Problem 063
So the problem wants to know:
"How many n-digit positive integers exist which are also an nth power?" Problem 63 (View Problem)
Unless I'm missing something 9^n for all n (>0 of course) is an n-digit number. I tried it out briefly in Scala, this isn't exactly what I wrote but it hopefully gets the idea across:
powers = for(i <- 1 to 20) yield {BigInt(9).pow(i)}
powers.map(_.length) = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
Basically there is always an n-digit number that is the nth power of 9. Am I missing something? Please help, it's driving me crazy
"How many n-digit positive integers exist which are also an nth power?" Problem 63 (View Problem)
Unless I'm missing something 9^n for all n (>0 of course) is an n-digit number. I tried it out briefly in Scala, this isn't exactly what I wrote but it hopefully gets the idea across:
powers = for(i <- 1 to 20) yield {BigInt(9).pow(i)}
powers.map(_.length) = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
Basically there is always an n-digit number that is the nth power of 9. Am I missing something? Please help, it's driving me crazy
- jaap
- Posts: 588
- Joined: Tue Mar 25, 2008 3:57 pm
- Contact:
-
MrTuring
- Posts: 3
- Joined: Tue Jan 25, 2011 1:22 am
Re: Problem 063
Oh wow, don't I feel like an idiot hah
I stopped my naive first attempt with some trial-and-error checking just before it would've failed...thank you very much!
-
oenone
- Posts: 2
- Joined: Mon Mar 07, 2011 10:09 am
- hk
- Administrator
- Posts: 12842
- Joined: Sun Mar 26, 2006 10:34 am
- Location: Haren, Netherlands
Re: Problem 063
oenone wrote:I assumed that 01 = 0 counts, too. But seems to have been false.
How many n-digit positive integers exist which are also an nth power?
Is 0 a positive integer?
War ruins the life and health of untold numbers of innocent children.
-
oenone
- Posts: 2
- Joined: Mon Mar 07, 2011 10:09 am
Re: Problem 063
I knew I missed something...hk wrote:oenone wrote:I assumed that 01 = 0 counts, too. But seems to have been false.How many n-digit positive integers exist which are also an nth power?Is 0 a positive integer?
-
JMW1994
- Posts: 43
- Joined: Sat Apr 09, 2011 11:35 pm
-
TripleM
- Posts: 384
- Joined: Fri Sep 12, 2008 3:31 am

