Saturday, May 16, 2009
This calculator takes two numbers and finds the greatest common divisor and the least common multiple. If you multiply the gcm by the lcd you get the same as multiplying the two original numbers.
Friday, May 01, 2009
I made this javascript prime factors calculator and have found it strangely addictive. Enter the number to factorize in the left box and click on the 'factorize' button. The prime factors are shown in the right box.
I've never had a push button prime factor generator before.
You can easily check if a number is prime. It only has one prime factor: itself.
It's easy to generate a large prime number. Just type in a long random number and get its prime factors. If one of the factors is large, you've found a large prime number. If you don't get one, try changing your random number slightly.
For example: 384339387 gives 3,37,3462517. So 3462517 is a nice large prime number.
I like adding an extra digit and seeing what factors come out:
| number | prime factors |
| 11 | 11 |
| 111 | 3,37 |
| 1111 | 11,101 |
| 11111 | 41,271 |
| 111111 | 3,7,11,13,37 |
| 1111111 | 239,4649 |
| 11111111 | 11,73,101,137 |
| 111111111 | 3,3,37,333667 |
| 1111111111 | 11,41,271,9091 |
| 11111111111 | 21649,513239 |
| 111111111111 | 3,7,11,13,37,101,9901 |
All the numbers with an even number of ones have the factor 11. And those with 4, 8 and 12 ones have factors of 11 and 101 because 1111 = 11 X 101.
Those with an odd number of ones have only two prime factors, except 111111111 (nine ones). I wonder if there's something going on here?
Oh no, the next number lets me down: 1111111111111 has factors 53,79 and 265371653.
If you find any interesting patterns with this prime factors calculator, let me know.
Wednesday, April 29, 2009
Here is every math calculator that I could think of. Let me know of others and I'll add them. Basic Mathematics:
Trigonometric Functions:
Friday, April 26, 2002
While I've been away from my blog a coup has been put down in Venezuela. Has the fingerprints of the US government all over it.
For continuing coverage see NarcoNews.
Wednesday, March 27, 2002
After a 20,000 strong Palm Sunday march in Melbourne and thousands marching in other capital cities around Australia, the campaign against mandatory detention moves to the desert over Easter as many groups, possibly including Germans, make their way to the Woomera Detention Centre. Those who can't make it can go to Villawood in Sydney.
While Indonesia ruled East Timor, Australia looked at getting 50% of the Timor Gap oil. With an independant East Timor Australia will now get 10%. However, this is still a somewhat dubious claim.
So to make sure we keep our 10%, Australia has just decided that disputes about our maritime boundaries can no longer be taken to International Court of Justice.
Despite the deaths of ten of thousands of East Timorese over the last 30 years Australia keeps on screwing the East Timorese over the oil.
Thursday, March 21, 2002
According to the WTO there have been two environmental disputes involving the WTO. The Venezuelan dirty gasoline case and the shrimp-turtle case.
In both cases the environment lost out.
The WTO says this has nothing to do with the environment, but is about the breaking of trade rules:
The US lost the [first] case because it discrminated — its requirement on domestic producers was less stringent than that imposed on imported gasoline.The WTO state their policy quite openly:The US lost the [second] case because it applied its import measures in a differentiated manner. [i.e. it treated Asian countires differently than Carribean countries]
Members are free to adopt their own policies aimed at protecting the environment as long as, in so doing, they fulfill their obligations and respect the rights of other Members under the WTO Agreement.Trade rules come first, and the envirnomental laws come second. If a country's environmental laws breach the trade rules, then the country can be sanctioned.
So if a company wants to beat an environmental regulation all they have to do is show that the regulation is inconsistent with trade rules.
The trade rules say that you must be consistant. Environmental laws must treat local the same as foreign, and treat all non-local the same. Otherwise the laws will be under threat.
This threatens the environment because environmental wins are often peacemeal, gaining a bit here and a bit there, in often inconsistent and partial ways. You get as much as you can out of those in power.
But now, under the WTO, any country can come along and say - hey, those laws are not consistent. They must go. You allow your own oil companies to pollute, so you should allow us to as well (the WTO agreed). You save turtles in Asia, but you're not saving them in the Carribean, so you should allow us to kill turtles in Asia as well (the WTO agreed).
Although a little complicated - this is the direct threat that the WTO rules are to the environment (and human rights).