Problem 063

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
mrlinx
Posts: 1
Joined: Sun Feb 10, 2008 5:14 am

Problem 063

Post by mrlinx »

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.
User avatar
rayfil
Administrator
Posts: 1412
Joined: Sun Mar 26, 2006 5:30 am
Location: Quebec, Canada
Contact:

Re: Problem 63 clarification

Post by rayfil »

mrlinx wrote:Its my understanding that there's a infinity of numbers that satisfy the property of having a power to represent the value.
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.
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

Post by StormXI »

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.
User avatar
daniel.is.fischer
Posts: 2400
Joined: Sun Sep 02, 2007 11:15 pm
Location: Bremen, Germany

Re: Problem 63

Post by daniel.is.fischer »

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.
Il faut respecter la montagne -- c'est pourquoi les gypaètes sont là.
User avatar
Tommy137
Posts: 238
Joined: Sun Feb 24, 2008 6:02 pm
Location: Cologne, Germany
Contact:

Re: Problem 63

Post by Tommy137 »

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)
Image
StormXI
Posts: 2
Joined: Sun Jul 06, 2008 3:26 pm

Re: Problem 63

Post by StormXI »

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.
User avatar
euler
Administrator
Posts: 5101
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: Problem 63

Post by euler »

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.
Maybe he's changed it since you made this post, but it looks okay to me?
Image
impudens simia et macrologus profundus fabulae
User avatar
Tommy137
Posts: 238
Joined: Sun Feb 24, 2008 6:02 pm
Location: Cologne, Germany
Contact:

Re: Problem 63

Post by Tommy137 »

euler wrote:
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.
Maybe he's changed it since you made this post, but it looks okay to me?
Ah yes, he changed it from

"NAME >> ..."
to
"NAME // ..."

The > were not displayed, but something like &...;
Image
MrTuring
Posts: 3
Joined: Tue Jan 25, 2011 1:22 am

Problem 063

Post by MrTuring »

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 :shock:
User avatar
jaap
Posts: 588
Joined: Tue Mar 25, 2008 3:57 pm
Contact:

Re: Problem 063

Post by jaap »

922 = 9,84770,90218,36112,32881
MrTuring
Posts: 3
Joined: Tue Jan 25, 2011 1:22 am

Re: Problem 063

Post by MrTuring »

Oh wow, don't I feel like an idiot hah :oops: :lol: 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

Re: Problem 063

Post by oenone »

I assumed that 01 = 0 counts, too. But seems to have been false.
User avatar
hk
Administrator
Posts: 12842
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 063

Post by hk »

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?
Image
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

Post by oenone »

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?
I knew I missed something...
JMW1994
Posts: 43
Joined: Sat Apr 09, 2011 11:35 pm

Re: Problem 063

Post by JMW1994 »

bn(n = nth-digit and b = base). Can the base can exceed nine?
Image
TripleM
Posts: 384
Joined: Fri Sep 12, 2008 3:31 am

Re: Problem 063

Post by TripleM »

The problem doesn't put any limits on the base, so yes.
Post Reply