Friday, April 13, 2007

NUMB3RS



Actuarial Science Golden Ratio Pursuit Curve
Art Gallery Theorem Guilloché Pattern Pythagorean Theorem
Bayesian Analysis Handshake Problem Reversion to the Mean
Benford's Law Integer Sequence Riemann Hypothesis
Cellular Automaton Linear Discriminant An... RSA Number
Cluster Analysis Markov Chain Sabermetrics
Combinatorics Mathematics Prizes SIR Model
Critical Line Minesweeper Sphere Eversion
Discrete Logarithm Minimum Spanning Tree Spirograph
Econometrics Monty Hall Problem Sudoku
Eversion Nash Equilibrium Supersingular Prime
Farey Sequence Origami Tesseract
Fibonacci Number P Versus NP Problem Traveling Salesman Pro...
Folding Percolation Theory Wavelet
Game Theory Prime Number
Geometric Sequence Prisoner's Dilemma

Mathematics for Programmers 1 :Prime Numbers

A prime number (or prime integer, often simply called a "prime" for short) is a positive integer 1" border="0" height="15" width="33"> that has no positive integer divisors other than 1 and p itself. (More concisely, a prime number p is a positive integer having exactly one positive divisor other than 1.) For example, the only divisors of 13 are 1 and 13, making 13 a prime number, while the number 24 has divisors 1, 2, 3, 4, 6, 8, 12, and 24 (corresponding to the factorization 24==2^3.3), making 24 not a prime number. Positive integers other than 1 which are not prime are called composite numbers.

Prime numbers are therefore numbers that cannot be factored or, more precisely, are numbers n whose divisors are trivial and given by exactly 1 and n.

The number 1 is a special case which is considered neither prime nor composite (Wells 1986, p. 31). Although the number 1 used to be considered a prime (Goldbach 1742; Lehmer 1909; Lehmer 1914; Hardy and Wright 1979, p. 11; Gardner 1984, pp. 86-87; Sloane and Plouffe 1995, p. 33; Hardy 1999, p. 46), it requires special treatment in so many definitions and applications involving primes greater than or equal to 2 that it is usually placed into a class of its own. A good reason not to call 1 a prime number is that if 1 were prime, then the statement of the fundamental theorem of arithmetic would have to be modified since "in exactly one way" would be false because any n==n.1. In other words, unique factorization into a product of primes would fail if the primes included 1. A slightly less illuminating but mathematically correct reason is noted by Tietze (1965, p. 2), who states "Why is the number 1 made an exception? This is a problem that schoolboys often argue about, but since it is a question of definition, it is not arguable." As more simply noted by Derbyshire (2004, p. 33), "2 pays its way [as a prime] on balance; 1 doesn't."

With 1 excluded, the smallest prime is therefore 2. However, since 2 is the only even prime (which, ironically, in some sense makes it the "oddest" prime), it is also somewhat special, and the set of all primes excluding 2 is therefore called the "odd primes." Note also that while 2 is considered a prime today, at one time it was not (Tietze 1965, p. 18; Tropfke 1921, p. 96).

The nth prime number is commonly denoted p_n, so p_1==2, p_2==3, and so on.

The first few primes are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, ...
A mnemonic for remembering the first seven primes is, "In the early morning, astronomers spiritualized nonmathematicians"

In the Season 1 episode "Prime Suspect" (2005) of the television crime drama NUMB3RS, math genius Charlie Eppes realized that character Ethan's daughter has been kidnapped because he is close to solving the Riemann hypothesis, which allegedly would allow the perpetrators to break essentially all internet security by factoring large numbers.

The numbers of decimal digits in p_(10^n) for n==0, 1, ... is given by 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, ...


Source :http://mathworld.wolfram.com

Fibonacci Series..........

Fibonacci numbers Equation: F(n) = F(n-1) + F(n-2)

Series :0, 1,1,2,3,5,8,13,21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, 196418, 317811, 514229, 832040, 1346269, 2178309, 3524578, 5702887, 9227465, 14930352, 24157817, 39088169

1. Fibonacci numbers whose internal digits form a Fibonacci number. Or Fibonacci numbers from which deleting the MSD and LSD leaves a Fibonacci number.

0, 1,1,2,3,5,8,13,21,34, 55, 89, 233, 610, 987 (The sequence is finite.)

2.
Fibonacci numbers whose external digits form a Fibonacci number. Or Fibonacci numbers whose MSD and LSD form a Fibonacci number.

0, 1,1,2,3,5,8,13,21,34, 55, 89,121393, 1836311903, 2504730781961, 10610209857723, 10284720757613717413913, 184551825793033096366333, 59425114757512643212875125, 155576970220531065681649693

3.
Fibonacci numbers whose external digits as well as internal digits form a Fibonacci number.

0, 1,1,2,3,5,8,13,21,34, 55, 89

Thursday, April 12, 2007

Discovered a nice thing!!!!!!!!!!(hey look at what I’ve found and I’m excited about researching!)

Children's natural curiosity can help them to teach themselves in groups.Take for example,
computer games, i saw this when i went to find my little brother and found that he was in a net cafe playing games with his friends, i just saw from some distance how they were behaving, i came to a point that children can learn faster when they are in groups and by their natural curiosity.It seems that being in a group was a major component to self-learning.

But it makes sense. People don’t learn by rote memorization or being forced to learn something. They don’t really truly learn material by sitting at a desk and forcing it into their brains. we learn by practicing, doing, asking questions, figuring stuff out. NOT by lecture. we learn because we have a question, a problem, or out of curiosity.lectures can help us prepare for tests, but this kind of “figure stuff out” method is what gets you to really learn something.

So what’s the real difference between adults and kids? Just that adults “can’t” learn new things? No. it’s more like the sense of curiosity and self-confidence just fades or grows out of them or something. So the key to always being able to learn is to retain your sense of curiosity and spontaneity.

All these things are sort of “common sense”, but now there’s some sorta scientific “proof”(my experiment) that this is true.

I just wish that we had an educational system that matched research like this. individual teachers who model their classrooms around these ideas are awesome, but when they’re forced to “teach to the test” or their kids will fail and they’ll lose their funding… it just hurts everyone.

Why can't we take this example for teaching the machines to learn????????any body can help me out ???????????

Anyway, got to get back to work… just didn’t want to forget to write about this.

Who is the Next President of India?

I want Mr President(Dr. APJ Kalam) to continue for another term. And i think even others also wants him to continue..............How about you?

Wednesday, April 11, 2007

Dynamically removing dynamically added controls

I dynamically add controls to my form, and also i need the option to remove them again.So first i did this to remove,(as per my logic)

foreach(Control contrl in this.Controls)
{
if (contrl .GetType() == typeof(TextBox))
{
this.Controls.Remove(contrl );
}
}

But this code removed only alternative textboxes. At first i was unable to find it out,but then after searching on net i found that when you remove a control from the ControlCollection, subsequent controls are moved up to fill that space. And found the solution to my problem. The code that must be used is like below.

foreach (Control contrl in this.Controls)
{
if (contrl.GetType() == typeof(TextBox))
{
ContrlToRemove.Add((TextBox)contrl);
}
}

foreach (TextBox txtbox in ContrlToRemove)
this.Controls.Remove(txtBox);

Other Alternatives:
1. You can do it in a single loop when removing items from any sort of indexed container,it is always best to remove them in reverse order starting at the end.And also when manually removing windows controls from a container,it is best to Dispose them at the same time. Otherwise you may have a memory leak.

If you find other alternatives too keep me informed.

Saturday, April 07, 2007

ASCII Table


Great Tools for Web Developers

With the advancement of Web 2.0, many people started to work in web related fields. And to help them so many great tools have been developed. Here i will provide you with the list of great tools you can use for your web related work like development and debugging.

For Internet Explorer:
1. Web Development Helper (www.nikhil.net)
2. DebugBar (www.debugbar.com)
3. CompanionJS (http://my-debugbar.com/wiki/CompanionJS/HomePage)

For FireFox:

1. Firebug (www.getfirebug.com)
2. Web Developer (www.chrispederick.com/work/webdeveloper/)
3. Colorzilla (www.iosart.com/firefox/colorzilla/index.html)
4. Live HTTP Header (http://livehttpheaders.mozdev.org/installation.html#)