Problem 167

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.
User avatar
stijn263
Posts: 1505
Joined: Sat Sep 15, 2007 11:57 pm
Location: Netherlands

Re: Problem 167

Post by stijn263 »

No, it's not. You're not extremely far off though..
LarryC

Re: Problem 167

Post by LarryC »

Thanks; just fixed it. Not often I'm two out! ;)
LarryC

Re: Problem 167

Post by LarryC »

I must be going mad here! Does n=8 render ?????????? like I get? Sorry to ask for all these confirmations!

Thanks,
Lster
Last edited by LarryC on Wed Jul 09, 2008 7:36 pm, edited 1 time in total.
User avatar
stijn263
Posts: 1505
Joined: Sat Sep 15, 2007 11:57 pm
Location: Netherlands

Re: Problem 167

Post by stijn263 »

No, it's not.
LarryC

Re: Problem 167

Post by LarryC »

With some change... Is it be it right or not, I deleted it (hk)? Man, this one is driving me mad! ;)
User avatar
Tommy137
Posts: 238
Joined: Sun Feb 24, 2008 6:02 pm
Location: Cologne, Germany
Contact:

Re: Problem 167

Post by Tommy137 »

You're not trying to get the values for all n here, right? :D
Image
LarryC

Re: Problem 167

Post by LarryC »

No. But these are my questioned values. I wouldn't be able to guess in a million years... :)
LarryC

Re: Problem 167

Post by LarryC »

be it right or not, I deleted it (hk)
I can't really see what harm it would do, but that's fine. I'll figure it out on my own.
zwuupeape
Posts: 189
Joined: Tue Jun 09, 2009 6:11 pm

Re: Problem 167

Post by zwuupeape »

I found the pattern (although I have no idea why it works). It's fine for some values of n, not for others. Is there a pattern in the patterns? some n's are far more difficult than others, obviously - but how much more difficult? Are there many people who solved it for some n but not others?

Out of curiosity - can anyone solve this for U(2,25)? U(2,101)? U(2,1001)?

Thanks.
User avatar
Assato
Posts: 13
Joined: Sun Apr 19, 2009 4:21 pm

Re: Problem 167

Post by Assato »

U(2,25) is calculated in the thread... the others are probably too big (101 might be feasible, I'll try later on when I get to my computer).
quilan
Posts: 182
Joined: Fri Aug 03, 2007 11:08 pm

Re: Problem 167

Post by quilan »

zwuupeape wrote:I found the pattern (although I have no idea why it works). It's fine for some values of n, not for others. Is there a pattern in the patterns? some n's are far more difficult than others, obviously - but how much more difficult? Are there many people who solved it for some n but not others?

Out of curiosity - can anyone solve this for U(2,25)? U(2,101)? U(2,1001)?

Thanks.
Yeah, I just re-checked my code from the thread. U(2,25) is easy and is done in thread, but U(2,101) and up are prohibitively expensive (at least with my Python code). Actually, my computer gave me a memory error once it got to U(2,33). So yeah... not happening.
ex ~100%'er... until the gf came along.
Image
scientes
Posts: 6
Joined: Fri Sep 12, 2014 11:54 am

Re: Problem 167

Post by scientes »

k=10^11-1
======================
U(2,5)[k]= <snipped by modrator>
U(2,7)[k]= <snipped by modrator>
=====================
Is it true ?
User avatar
thedoctar
Posts: 128
Joined: Fri Apr 15, 2011 11:57 am
Location: Sydney, Australia

Re: Problem 167

Post by thedoctar »

I have a bit of spare time on my hands so came back to PE.

First welcome-back problem, what a doozy! Congrats to those who made this problem.

I was stuck for hours on an edge-case in my code. Really well-designed problem!
Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Image
fabas indulcet fames
Post Reply