Flash Flash Revolution: Community Forums

Flash Flash Revolution: Community Forums (http://www.flashflashrevolution.com/vbz/index.php)
-   Critical Thinking (http://www.flashflashrevolution.com/vbz/forumdisplay.php?f=33)
-   -   This time not stupid math (http://www.flashflashrevolution.com/vbz/showthread.php?t=129520)

SKG_Scintill 03-20-2013 03:33 PM

Re: This time not stupid math
 
Oh jeez, I can't even watch sitcoms anymore or I'm behind with the times.
Ehhm, I'll have something to read on my free night tonight :p

smartdude1212 03-20-2013 04:18 PM

Re: This time not stupid math
 
What R did in his lengthy post looks familiar with what I know on this subject regarding generating functions, etc... of course, if you wanted to go through those steps 100 times... let's just say you'd rather eat lead. That program is definitely tidy.

Reincarnate 03-20-2013 07:08 PM

Re: This time not stupid math
 
lol

Reincarnate 03-20-2013 07:15 PM

Re: This time not stupid math
 
lol

Reincarnate 03-20-2013 07:27 PM

Re: This time not stupid math
 
You can also use

http://en.wikipedia.org/wiki/Faulhaber%27s_formula

With the recursive definition for the Bernoulli numbers defined here

http://en.wikipedia.org/wiki/Bernoul...ive_definition


But I mean it may as well just be this...

Code:

def brute(x,y):
    return sum(i**(x-1) for i in range(1,y))


reuben_tate 03-20-2013 07:38 PM

Re: This time not stupid math
 
Hey Reincarnate, do you have a proof or at least a brief explanation for why the method you posted on the first page works?

Reincarnate 03-20-2013 07:47 PM

Re: This time not stupid math
 
lol

PaperclipGames 03-22-2013 12:17 PM

Re: This time not stupid math
 
You learn something new every day. That page on Wolfram is actually quite enlightening! Thanks for posting.


All times are GMT -5. The time now is 11:20 PM.

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