Page 1 of 2

[2013-Feb-01]

Posted: Fri Feb 01, 2013 9:46 pm
by Rant_423
loved this one. I'm currently at the college and just three days ago I did the exam that involved Fourier Transform.
and since I'm studying IT, I wrote a (horrible and dirty and unelegant) piece of perl code to find the Fouriest transformation of any given number :D

http://pastebin.com/9u56wb2W

(please ignore line three, it's a joke toward a friend :oops: )

ps. it has some flaws (don't give results for just '4' and if some bases have the same amount of Fours, it will give just the lowest base)
(also I suck writing in english)

Re: 2013 Feb 01

Posted: Sat Feb 02, 2013 7:45 am
by epidemian
Someone made a code-golfing contest inspired by this comic here: http://codegolf.stackexchange.com/quest ... as-most-4s. There are some good responses there. And i really like the (winner at this moment) APL solution with its little explaination. It's not as bizarre as it seems! I used that language at university for a bit and man it was a fun language to program with; trying to always come up with the more succinct way to express an algorithm =D

Re: 2013 Feb 01

Posted: Sat Feb 02, 2013 7:54 am
by epidemian
BTW, it's the first time i observe this XKCD-ish nerdly-viral type of ramification from an SMBC comic (but most surely not the first time it happens). It's really awesome. Just as an example, a question inspired by today's XKCD comic on the "tar" Linux command also got popular on the StackExchange network, though this time on serverfault.com: http://serverfault.com/questions/474561 ... -xvfz-work.

Re: 2013 Feb 01

Posted: Sat Feb 02, 2013 10:55 am
by Jan-Maarten
Every number system is base 10! The number system with the most fours in it will have this many unique number symbols: x x x x x.

Re: 2013 Feb 01

Posted: Mon Feb 04, 2013 5:13 am
by Hock
FUN FACT!

If x=(5^n)-1

Where n is a natural number >1

Then x is fouriest in base five.

Re: 2013 Feb 01

Posted: Mon Feb 04, 2013 6:57 am
by Lethal Interjection
Hock wrote:FUN FACT!

If x=(5^n)-1

Where n is a natural number >1

Then x is fouriest in base five.

I'M HAVING SO MUCH FUN!

Re: 2013 Feb 01

Posted: Wed Feb 06, 2013 4:49 am
by Apocalyptus
Almost too much fun. I think we all ought to sit down calmly, take a stress pill, and think things over.

Re: 2013 Feb 01

Posted: Wed Feb 06, 2013 5:28 am
by Kimra
Apocalyptus wrote:Almost too much fun. I think we all ought to sit down calmly, take a stress pill, and think things over.
Why would I need a pill to be more stressed? This is preposterous.

Re: 2013 Feb 01

Posted: Wed Feb 06, 2013 5:58 am
by Apocalyptus
A pill for relieving stress. For goodness' sake, work with me a little here Kimra.

Re: 2013 Feb 01

Posted: Wed Feb 06, 2013 6:05 am
by Lethal Interjection
We all know those are rohipnol.

Re: 2013 Feb 01

Posted: Wed Feb 06, 2013 6:11 am
by Apocalyptus
Hey, there's nothing less stressful than losing consciousness, right?

Re: 2013 Feb 01

Posted: Wed Feb 06, 2013 7:25 am
by GUTCHUCKER
Depends on where you wake up.

Re: 2013 Feb 01

Posted: Wed Feb 06, 2013 4:55 pm
by Lethal Interjection
Apocalyptus wrote:Hey, there's nothing less stressful than losing consciousness, right?
No cares in the world!

Re: 2013 Feb 01

Posted: Wed Feb 06, 2013 8:58 pm
by Michael May
ARE YOU GUYS READY FOR SUPER FUN FACTS

If a number x can be divided by 4(1+a+a^2+a^3+...a^n) for some a>4 and any n, then x is all 4's in base a.

Re: 2013 Feb 01

Posted: Wed Feb 06, 2013 9:54 pm
by Edminster
Dude, not cool! I wasn't ready for that level of excitement, and now a blood vessel has popped in my eye.

Thanks a lot, dick.