Problem 221

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
timpa
Posts: 1
Joined: Mon Feb 02, 2009 2:23 pm

Problem 221

Post by timpa »

Can someone confirm the following Alexandrian numbers?

1000th: 787167192
10000th: 649280243274
100000th: 584788819726944
User avatar
Georg
Posts: 157
Joined: Mon Jan 21, 2008 7:00 am
Location: Mannheim, Germany
Contact:

Re: Problem 221

Post by Georg »

No, I got a different result.
estanford
Posts: 10
Joined: Sun Sep 13, 2009 12:06 pm

Re: Problem 221

Post by estanford »

There may be some bugs in my code, but I get 772168278 as the thousandth Alexandrian.

EDIT: I know my algorithm successfully generates all Alexandrians up to the fortieth in sequence, but I can't verify it beyond that.
zwuupeape
Posts: 189
Joined: Tue Jun 09, 2009 6:11 pm

Re: Problem 221

Post by zwuupeape »

This is correct. The 1000th Alexandrian Integer is indeed 772168278.

Believe it or not, but if you solve the problem, you'll see that there's an algorithm that finds these numbers O(nlogn) time. :)
User avatar
Oliver1978
Posts: 166
Joined: Sat Nov 22, 2014 9:13 pm
Location: Erfurt, Germany

Re: Problem 221

Post by Oliver1978 »

For the 10,000th I get 628[...]090 and for the 100,000th I get 232[...]8200.

???
49.157.5694.1125
Svartskägg
Posts: 55
Joined: Thu Mar 29, 2012 12:55 pm
Location: Sweden

Re: Problem 221

Post by Svartskägg »

leghorn wrote:For the 10,000th I get 628[...]090 and for the 100,000th I get 232[...]8200.
The value for 10000 is right, the other one wrong.
Image
320641_5486fc18ea1dcc4e9a8f29c7677a5c19 <-- my friend key
User avatar
Oliver1978
Posts: 166
Joined: Sat Nov 22, 2014 9:13 pm
Location: Erfurt, Germany

Re: Problem 221

Post by Oliver1978 »

Oh well, I suspect there's an overflow.
49.157.5694.1125
h_anand
Posts: 14
Joined: Wed May 27, 2015 1:45 am

Re: Problem 221

Post by h_anand »

Svartskägg wrote:
leghorn wrote:For the 10,000th I get 628[...]090 and for the 100,000th I get 232[...]8200.
The value for 10000 is right, the other one wrong.
I get the following values:

Thousandth: 772...278
Ten thousandth: 628...090
Hundred thousandth: 756...504

Is the value for Hundred thousandth correct?

Is overflow possible? I mean, would I encounter values larger than 2 ^ 64?

thank you,
Svartskägg
Posts: 55
Joined: Thu Mar 29, 2012 12:55 pm
Location: Sweden

Re: Problem 221

Post by Svartskägg »

h_anand wrote:Hundred thousandth: 756...504
Is the value for Hundred thousandth correct?
No
h_anand wrote:Is overflow possible? I mean, would I encounter values larger than 2 ^ 64?
I don't remember how my program works, but it uses no variable with more than 64 bits and it gives the right answer, so presumably there is no overflow.
Image
320641_5486fc18ea1dcc4e9a8f29c7677a5c19 <-- my friend key
h_anand
Posts: 14
Joined: Wed May 27, 2015 1:45 am

Re: Problem 221

Post by h_anand »

Thank you, Svartskägg. I was able to solve the problem eventually. To give you an idea of my level, this is the toughest problem I have solved till date. My attempt at solving the arithmetic derivative might take several years to complete. :(
User avatar
Oliver1978
Posts: 166
Joined: Sat Nov 22, 2014 9:13 pm
Location: Erfurt, Germany

Re: Problem 221

Post by Oliver1978 »

I've iterated my way into this, but I've encountered an issue, which keeps me wondering. My code is ready to run, and it does find the correct answer...but not in the right spot. Would somebody care to take a look?

edit

Top of the evening. Solved this one. Had an overflow, temporary big integer helped me out.
49.157.5694.1125
pxor
Posts: 2
Joined: Mon Mar 04, 2019 4:00 am

Re: Problem 221

Post by pxor »

Hey, could anyone confirm these numbers are correct ?, thanks.

20k - 488-------508
60k - 124---------660
100k - 148----------350
140k - 276-----------940
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 221

Post by hk »

The first two are correct. The second two not.
Image
War ruins the life and health of untold numbers of innocent children.
Post Reply