{"id":285,"date":"2007-01-23T09:50:47","date_gmt":"2007-01-23T09:50:47","guid":{"rendered":"http:\/\/scientopia.org\/blogs\/goodmath\/2007\/01\/23\/basics-natural-numbers-and-integers\/"},"modified":"2007-01-23T09:50:47","modified_gmt":"2007-01-23T09:50:47","slug":"basics-natural-numbers-and-integers","status":"publish","type":"post","link":"http:\/\/www.goodmath.org\/blog\/2007\/01\/23\/basics-natural-numbers-and-integers\/","title":{"rendered":"Basics: Natural Numbers and Integers"},"content":{"rendered":"<p> One of the interestingly odd things about how people understand math is <em>numbers<\/em>. It&#8217;s<br \/>\nastonishing to see how many people don&#8217;t really understand what numbers <em>are<\/em>, or what different kinds of numbers there are. It&#8217;s particularly amazing to listen to people arguing<br \/>\nvehemently about whether certain <em>kinds<\/em> of numbers are really &#8220;real&#8221; or not.<\/p>\n<p> Today I&#8217;m going to talk about two of the most basic kind of numbers: the naturals and the integers. This is sort of an advanced basics article; to explain things like natural numbers and integers, you can either write two boring sentences, or you can go a bit more formal. The formal<br \/>\nstuff is more fun. If you don&#8217;t want to bother with that, here are the two boring sentences:<\/p>\n<ol>\n<li> The natural numbers (written <b>N<\/b>) are zero and the numbers that can be<br \/>\nwritten without fractions that are greater than zero.<\/li>\n<li> The integers (written <b>Z<\/b>) are all of the numbers, both larger and smaller than<br \/>\nzero, that can be written without fractions.<\/li>\n<\/ol>\n<p><!--more--><\/p>\n<h3>Natural Numbers<\/h3>\n<p> The most basic kind of number is what&#8217;s called a <em>natural number<\/em> Intuitively, natural<br \/>\nnumbers are whole numbers &#8211; no fractions &#8211; starting at zero, and going onwards towards infinity: 0, 1, 2, 3, 4, &#8230; Computer scientists are particularly fond of natural numbers, because everything computable ultimately comes from the natural numbers.<\/p>\n<p> The natural numbers are actually formally defined by something called <em>Peano arithmetic<\/em>. Peano arithmetic specifies a list of 5 rules that define the natural numbers:<\/p>\n<ol>\n<li> <b>Initial value rule:<\/b> 0 is a  natural number.<\/li>\n<li> <b> Successor rule<\/b>: For every natural number <em>n<\/em> there is exactly one other natural number called its successor <em>s(n)<\/em>.<\/li>\n<li> <b>Predecessor rule:<\/b> 0 is not the successor of any natural number. Every natural<br \/>\nnumber <em>except<\/em> zero is the successor to some other natural number, called<br \/>\nits <em>predecessor<\/em>.<\/li>\n<li> <b> Uniqueness rule<\/b>: No two natural numbers have the same successor.<\/li>\n<li> <b> Induction rule:<\/b> For some statement P, P is true for all<br \/>\nnatural numbers if:<\/p>\n<ol>\n<li>P is true about 0 (That is, P(0) is true)<\/li>\n<li> If you <em>assume<\/em> P is true for a natural number <em>n<\/em> (P(n) is true),<br \/>\nthen you can <em>prove<\/em> that the P is true for the successor s(n) of<br \/>\nn (P(s(n)) is true).<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p> And all of that is just a fancy way of saying: the natural numbers are numbers with no fractional<br \/>\npart starting at 0. We usually write <b>N<\/b> for the set of natural numbers. Most people, on first encountering the Peano rules find them pretty easy to understand, except for the last one. Induction is a tricky idea; I know that when I first saw an inductive proof, I certainly didn&#8217;t get it; it had a feeling of circularity to it that I had trouble wrapping my head around. But induction is essential: the natural numbers are an infinite set &#8211; so if we want to be able to say anything about the entire set, then we need to be able to use that kind of reasoning to extend from the finite to the infinite.<\/p>\n<p> To give an example of why we need induction, let&#8217;s look at addition. We can define addition on the natural numbers quite easily. Addition is a function &#8220;+&#8221; from a pair of natural numbers to another natural number called their <em>sum<\/em>.  Basically, we define addition using the successor rule of Peano arithmetic: m + n = 1 + (m + (n &#8211; 1)). So formally, addition is defined by the following rules:<\/p>\n<ol>\n<li> <b>Commutativity:<\/b> For any pair of natural numbers n and m, n + m = m + n.<\/li>\n<li> <b> Identity<\/b>: For any natural numbers n, n + 0 = 0 + n = n.<\/li>\n<li> <b> Recursion: <\/b>For any natural numbers m and n, m+s(n) = s(m+n)<\/li>\n<\/ol>\n<p> The last rule is the tricky one. Just remember that this is a <em>definition<\/em>, not a <em>procedure<\/em>. So it&#8217;s describing what addition <em>means<\/em>, not how to do it. The last rule works because of the  Peano induction rule.  Without it, how could we define what it means to add two numbers? Induction gives us a way of saying what addition means for <em>any<\/em> two natural numbers.<\/p>\n<h3>Integers<\/h3>\n<p> The integers are what you get when you extend the naturals by adding an <em>inverse<\/em> rule. Take the set of natural numbers <b>N<\/b>. In addition to the 5 Peano rules, we just need to add a definition of an <em>additive inverse<\/em>. An additive inverse of a non-zero natural number is<br \/>\njust a negative number. So, to get the integers, we just add these new rules:<\/p>\n<ol>\n<li><b>Additive Inverse<\/b>: For any natural number <em>n other than zero<\/em>,<br \/>\n<em>n<\/em>, there is exactly one number -n which <em>not<\/em> a natural number,<br \/>\nand which called the <em>additive inverse of n<\/em>,<br \/>\nwhere <em>n + -n =  0<\/em>. We call the set of natural numbers and their additive inverses<br \/>\nthe <em>integers<\/em><\/li>\n<li><b>Inverse Uniqueness<\/b>: For any two integers i and j, i is the additive inverse of<br \/>\nof j if and only if j is the additive inverse of i.<\/ol>\n<\/ol>\n<p> And that&#8217;s just a fancy way of saying that the integers are all of the whole numbers &#8211; zero, the<br \/>\npositives, and the negatives. What&#8217;s pretty neat is that if you define addition for the natural numbers, the addition of the inverse rule is enough to make addition work. And since multiplication on natural numbers is just repeated addition, that means that multiplication works for the integers too.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the interestingly odd things about how people understand math is numbers. It&#8217;s astonishing to see how many people don&#8217;t really understand what numbers are, or what different kinds of numbers there are. It&#8217;s particularly amazing to listen to people arguing vehemently about whether certain kinds of numbers are really &#8220;real&#8221; or not. Today [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[74,43],"tags":[],"class_list":["post-285","post","type-post","status-publish","format-standard","hentry","category-basics","category-numbers"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lzZS-4B","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/comments?post=285"}],"version-history":[{"count":0,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/285\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/media?parent=285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/categories?post=285"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/tags?post=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}