Go Back   Flash Flash Revolution > General Discussion > Technology
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
Old 10-27-2011, 08:45 PM   #1
FFR4EVA_00
FFR Player
 
FFR4EVA_00's Avatar
 
Join Date: Aug 2005
Location: Banned
Posts: 1,770
Default Re: THE project euler thread

level 1 get!
__________________
~*~Lurkadurk - 1134-7796-6967~*~
FFR4EVA_00 is offline   Reply With Quote
Old 10-27-2011, 09:56 PM   #2
iironiic
D6 FFR Legacy Player
FFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
iironiic's Avatar
 
Join Date: Jan 2009
Age: 33
Posts: 4,342
Default Re: THE project euler thread

Problem 356 will be accessible in 1 day, 9 hours, 5 minutes (Sat, 29 Oct 2011, 08:00 [America/New_York])
Current date/time on server: Fri, 28 Oct 2011, 03:55

Hahaha I'm excited!!
iironiic is offline   Reply With Quote
Old 10-28-2011, 11:20 AM   #3
FFR4EVA_00
FFR Player
 
FFR4EVA_00's Avatar
 
Join Date: Aug 2005
Location: Banned
Posts: 1,770
Default Re: THE project euler thread

So Much Bullshit
__________________
~*~Lurkadurk - 1134-7796-6967~*~
FFR4EVA_00 is offline   Reply With Quote
Old 10-28-2011, 01:36 PM   #4
leonid
I am leonid
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
leonid's Avatar
 
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 35
Posts: 8,080
Default Re: THE project euler thread

(Quote post to avoid clicking so many buttons)
I don't like how this thread essentially gives out major hints for the last problems.
Can we stop giving hints and/or wrong attempts if a couple of posts are not enough?

hondaracer600, no offense but could you stop asking people to feed you with direct hints?? It defeats the whole purpose of project euler.
__________________



Proud member of Team No
leonid is offline   Reply With Quote
Old 10-30-2011, 03:06 AM   #5
leonid
I am leonid
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
leonid's Avatar
 
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 35
Posts: 8,080
Default Re: THE project euler thread

BAM!!

__________________



Proud member of Team No
leonid is offline   Reply With Quote
Old 10-30-2011, 09:38 AM   #6
iironiic
D6 FFR Legacy Player
FFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
iironiic's Avatar
 
Join Date: Jan 2009
Age: 33
Posts: 4,342
Default Re: THE project euler thread

Nice leonid. I'm stuck on it haha.

EDIT: On another note:

Yesssss!!


Last edited by iironiic; 10-30-2011 at 12:59 PM..
iironiic is offline   Reply With Quote
Old 10-31-2011, 09:11 AM   #7
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: THE project euler thread

Problems like 356 are annoying because they're battles against the precision of your programming language... in huge ways

aka you need some other method to solve it because rounding errors will be the death of you no matter what.


Personally I am trying to find a clever way to express a cubic polynomial root as a series that I can apply some exponent/modulus math to.

Last edited by Reincarnate; 10-31-2011 at 11:33 AM..
Reincarnate is offline   Reply With Quote
Old 10-31-2011, 12:24 PM   #8
iironiic
D6 FFR Legacy Player
FFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
iironiic's Avatar
 
Join Date: Jan 2009
Age: 33
Posts: 4,342
Default Re: THE project euler thread

Quote:
Originally Posted by Reincarnate View Post

Personally I am trying to find a clever way to express a cubic polynomial root as a series that I can apply some exponent/modulus math to.
That's what I'm doing too, but I can't figure anything out for it yet.

I'm also trying to figure out some useful properties of the floor function but none of them seems useful.
iironiic is offline   Reply With Quote
Old 10-31-2011, 12:38 PM   #9
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: THE project euler thread

Quote:
Originally Posted by iironiic View Post
That's what I'm doing too, but I can't figure anything out for it yet.

I'm also trying to figure out some useful properties of the floor function but none of them seems useful.
There's nothing particularly interesting about floor function as far as I can tell -- that's just there to make it clear that the decimals need to be lopped off so that you can take the last 8 digits of the end result. The tough part is getting the right value for x^987654321 because the right value is heavily dependent on how precise x is -- but the level of precision you'd need is stupidly high.
Reincarnate is offline   Reply With Quote
Old 10-31-2011, 03:22 PM   #10
stargroup100
behanjc & me are <3'ers
FFR Simfile AuthorFFR Music Producer
 
Join Date: Jul 2006
Posts: 2,051
Default Re: THE project euler thread

Quote:
Originally Posted by Reincarnate View Post
There's nothing particularly interesting about floor function as far as I can tell -- that's just there to make it clear that the decimals need to be lopped off so that you can take the last 8 digits of the end result. The tough part is getting the right value for x^987654321 because the right value is heavily dependent on how precise x is -- but the level of precision you'd need is stupidly high.
Stupidly high is an understatement. You'd need several billion digits if you were to brute force it LOL.

in other words i cant solve this problem and it's pissing me the hell off
__________________
Rhythm Simulation Guide
Comments, criticism, suggestions, contributions, etc. are all welcome.

Piano Etude Demon Fire sheet music
stargroup100 is offline   Reply With Quote
Old 11-1-2011, 11:11 AM   #11
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: THE project euler thread

leonid, you're a beast
Reincarnate is offline   Reply With Quote
Old 11-1-2011, 11:48 AM   #12
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: THE project euler thread

This was the code for my "naive" attempt (note: does not work because it requires more precision than we have access to, doing it this way. Still works great for smaller powers, though):

Code:
import os, sys
from math import sqrt, acos, cos, pi


def bigRoot(a,b,c):
    return (2 * sqrt(-(b - a*(a / 3.0))/3.0)) * cos(((acos((-((2*(a / 3.0)**2- b)*((a / 3.0)) + c)/2.0/ (sqrt(-(b - a*(a / 3.0))**3/27.0)))))/3.0)) - (a / 3.0)

def powRed(a,b,m):
    if b==1:
        return a
    if b%2==0:
        return powRed((a*a)%m,b/2,m)
    else:
        return (a*powRed((a*a)%m,(b-1)/2,m)) % m


sumTotal=0

for n in range(1,31):
    a, b, c  = -pow(2,n), 0, n     #corresponds to x^3+ax^2+bx+c 
    print "N=" + str(n) + ", biggest root = " + str(bigRoot(a,b,c))
    sumTotal=sumTotal+ int(powRed(bigRoot(a,b,c),987654321,10**8))

print "Last eight digits of power-sum: " + str(sumTotal % 10**8)
Reincarnate is offline   Reply With Quote
Old 11-1-2011, 01:25 PM   #13
iironiic
D6 FFR Legacy Player
FFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
iironiic's Avatar
 
Join Date: Jan 2009
Age: 33
Posts: 4,342
Default Re: THE project euler thread

Got #205 with pencil and paper. Took forever but at least I didn't have to sleep through my english class hahaha.

EDIT: Just got #53 with pencil and paper :)

Last edited by iironiic; 11-1-2011 at 01:58 PM..
iironiic is offline   Reply With Quote
Old 11-1-2011, 04:07 PM   #14
stargroup100
behanjc & me are <3'ers
FFR Simfile AuthorFFR Music Producer
 
Join Date: Jul 2006
Posts: 2,051
Default Re: THE project euler thread

The problems that I have found to be the most rewarding to solve with pencil/paper rather than coding are: ("*" following the number indicates a high difficulty, "#" following a number represents a fairly tedious problem in terms of manual work)

6, 9, 26*, 28, 29#, 33, 39, 69, 108, 138*#

I have obviously not looked at every problem between 1 and 108, but when I find more problems that can be done with pencil/paper I'll edit this.
__________________
Rhythm Simulation Guide
Comments, criticism, suggestions, contributions, etc. are all welcome.

Piano Etude Demon Fire sheet music

Last edited by stargroup100; 11-4-2011 at 02:37 PM..
stargroup100 is offline   Reply With Quote
Old 11-1-2011, 07:28 PM   #15
leonid
I am leonid
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
leonid's Avatar
 
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 35
Posts: 8,080
Default Re: THE project euler thread

Join #euler in irc.chatspike.net
__________________



Proud member of Team No
leonid is offline   Reply With Quote
Old 11-3-2011, 02:45 PM   #16
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: THE project euler thread

I've been cranking down hard on some of the easier problems (I'm still stuck on a few of the 300's that I find interesting) -- just did 216 myself and pretty much bruteforced it (lame).
Reincarnate is offline   Reply With Quote
Old 11-3-2011, 03:06 PM   #17
iironiic
D6 FFR Legacy Player
FFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
iironiic's Avatar
 
Join Date: Jan 2009
Age: 33
Posts: 4,342
Default Re: THE project euler thread

Quote:
Originally Posted by Reincarnate View Post
I've been cranking down hard on some of the easier problems (I'm still stuck on a few of the 300's that I find interesting) -- just did 216 myself and pretty much bruteforced it (lame).
I did the same thing. Felt lame as well but hey, at least we got the answer haha.

EDIT: Got #179 just now.

Last edited by iironiic; 11-3-2011 at 03:28 PM..
iironiic is offline   Reply With Quote
Old 11-3-2011, 03:59 PM   #18
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: THE project euler thread

stuck on 126 ffffuuuu

nvm got it

Last edited by Reincarnate; 11-3-2011 at 04:15 PM..
Reincarnate is offline   Reply With Quote
Old 11-4-2011, 12:26 AM   #19
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: THE project euler thread

Pumped out a few more today... 137 was a bit of a challenge, but the solution is an interesting one. I'm only on page 4/8 of total problems (when arranging them by # solved) and the questions are definitely getting tougher. Problems 338's been out since May 2011 and it still hasn't reached 100 solvers yet. 344 looks beastly, too.

Hit level 7, going to bed.
Reincarnate is offline   Reply With Quote
Old 11-5-2011, 12:51 PM   #20
x_lambourghini_x
Nope. Chuck Testa.
FFR Veteran
 
x_lambourghini_x's Avatar
 
Join Date: Aug 2009
Location: Inside your head
Age: 32
Posts: 288
Default Re: THE project euler thread

I tried, but because I can't do math for the life of me, I ragequit.
__________________
Everyday I'm shufflin'


New tournament hopefully coming up in the next couple of weeks. Stay tuned for more details.
x_lambourghini_x is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 12:34 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution