You have a tic tac toe board right. Okay you also have the following numbers.
1,2,3,4,5,6,7,8,9
you have to place the numbers in the tic tac toe board and you can only use each number only once. Here is the trick which ever way you play it up, down, vertical, horizontal it has to equal to the number 15. This is a simple one.
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
There is a very simple algorithm for making odd-ordered magic squares. If you know it, you can fill them in as fast as you can write the numbers. Otherwise, it is a bit of work. For squares of order 8, 12, 16, 20, et cetera, the algorithm is a bit more difficult, but you can fill them in just about as fast as you can write the numbers (you are more likely to make a mistake than with the odd squares). For squares of order 6, 10, 14, 18, 22, et cetera, the algorithm requires making 4 sub-squares and shuffling some of the numbers, so you do not do these in a hurry.
For order three, there is really only one magic square. It can be reflected and rotated to make it look differently, but these are considered trivial variations on the same square.
For higher orders, there are lots of truly different magic squares. There are alleged to be 880 distinct squares of order 4, which can be reflected, rotated to make 7040 variations.
I have been told that nobody knows how many 5th order squares there are, and I have been told that there are more than ten million, which seems like too high a number to me. I would not bet against that estimate, because my intuition has been wrong before, and will probably be wrong again.
Live long & prosper.
The Dinosaur from prehistoric era prior to computers.
Eschew obfuscation!
If a billion people believe a foolish idea, it is still a foolish idea!
VB.net 2010 Express
64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.
I happened to place the 5 in the middle, and then started to work with the sides, and funny enough, it seemed to work
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
No the einstein one came along the email route but there is sites out there with the einstein riddle. He did forget that the world was going to evolve.
It's not that hard. What i cannot believe is that not more people tried. Like i said earlier in the thread we deal with this everyday. Trying to solve our problems. It' s logical. I guess einstein never though that VB would exist.
eh, wasn't that Newton that got the apple in his head
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
All newton ever said was the idea of gravity came to him as he sat "in a contemplative mood" and "was occasioned by the fall of an apple". The story that
Newton was hit on the head by a falling apple must
be someone's joke.
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Sorry my mistake. Did you guys ever hear that einstein used to wear the same color cloths all the time. He did not want to complicate his life with simple things. He even walked out of his house nake one time.
About the apple i feel like an idiot. duh! I should have known better.
no problem, we all have apples falling towards us anyway
yeah i happened to have heard that
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.