[2013-Feb-01]
-
- Posts: 2
- Joined: Fri Feb 01, 2013 5:34 pm
[2013-Feb-01]
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
http://pastebin.com/9u56wb2W
(please ignore line three, it's a joke toward a friend )
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)
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
http://pastebin.com/9u56wb2W
(please ignore line three, it's a joke toward a friend )
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)
-
- Posts: 2
- Joined: Sat Feb 02, 2013 7:30 am
Re: 2013 Feb 01
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
-
- Posts: 2
- Joined: Sat Feb 02, 2013 7:30 am
Re: 2013 Feb 01
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
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.
-
- Posts: 1
- Joined: Sat Feb 02, 2013 12:06 pm
Re: 2013 Feb 01
FUN FACT!
If x=(5^n)-1
Where n is a natural number >1
Then x is fouriest in base five.
If x=(5^n)-1
Where n is a natural number >1
Then x is fouriest in base five.
- Lethal Interjection
- Death by Elocution
- Posts: 8048
- Joined: Wed Oct 12, 2005 2:17 pm
- Location: Behind your ear. It's magic!
- Contact:
Re: 2013 Feb 01
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!
- Apocalyptus
- Not what you were expecting
- Posts: 5278
- Joined: Tue Jun 02, 2009 2:00 pm
- Location: Melbourne
Re: 2013 Feb 01
Almost too much fun. I think we all ought to sit down calmly, take a stress pill, and think things over.
Kimra wrote:Next they'll be denying us the right to say "We'll rape your arse if you don't come to this fucken country."
- Kimra
- He-Man in a Miniskirt
- Posts: 6850
- Joined: Tue Jun 02, 2009 10:18 am
- Location: meanwhile elsewhere
Re: 2013 Feb 01
Why would I need a pill to be more stressed? This is preposterous.Apocalyptus wrote:Almost too much fun. I think we all ought to sit down calmly, take a stress pill, and think things over.
King Prawn
- Apocalyptus
- Not what you were expecting
- Posts: 5278
- Joined: Tue Jun 02, 2009 2:00 pm
- Location: Melbourne
Re: 2013 Feb 01
A pill for relieving stress. For goodness' sake, work with me a little here Kimra.
Kimra wrote:Next they'll be denying us the right to say "We'll rape your arse if you don't come to this fucken country."
- Lethal Interjection
- Death by Elocution
- Posts: 8048
- Joined: Wed Oct 12, 2005 2:17 pm
- Location: Behind your ear. It's magic!
- Contact:
Re: 2013 Feb 01
We all know those are rohipnol.
- Apocalyptus
- Not what you were expecting
- Posts: 5278
- Joined: Tue Jun 02, 2009 2:00 pm
- Location: Melbourne
Re: 2013 Feb 01
Hey, there's nothing less stressful than losing consciousness, right?
Kimra wrote:Next they'll be denying us the right to say "We'll rape your arse if you don't come to this fucken country."
- GUTCHUCKER
- Gotchucker's less handsome twin
- Posts: 2126
- Joined: Wed Dec 01, 2010 2:26 am
- Location: Paradise City?
- Lethal Interjection
- Death by Elocution
- Posts: 8048
- Joined: Wed Oct 12, 2005 2:17 pm
- Location: Behind your ear. It's magic!
- Contact:
Re: 2013 Feb 01
No cares in the world!Apocalyptus wrote:Hey, there's nothing less stressful than losing consciousness, right?
Re: 2013 Feb 01
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.
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.
- Edminster
- Tested positive for Space-AIDS
- Posts: 8832
- Joined: Fri Sep 09, 2005 9:53 pm
- Location: Internet
- Contact:
Re: 2013 Feb 01
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.
Thanks a lot, dick.
ol qwerty bastard wrote:bitcoin is backed by math, and math is intrinsically perfect and logically consistent always
gödel stop spreading fud