{"id":7046,"date":"2026-11-16T02:33:59","date_gmt":"2026-11-16T05:33:59","guid":{"rendered":"https:\/\/tucumandevelopers.com\/index.php\/2026\/11\/16\/1-7-is-a-whole-number-your-number-system-just-hasnt-heard-yet\/"},"modified":"2026-11-16T02:33:59","modified_gmt":"2026-11-16T05:33:59","slug":"1-7-is-a-whole-number-your-number-system-just-hasnt-heard-yet","status":"publish","type":"post","link":"https:\/\/tucumandevelopers.com\/index.php\/2026\/11\/16\/1-7-is-a-whole-number-your-number-system-just-hasnt-heard-yet\/","title":{"rendered":"1\/7 is a whole number. Your number system just hasn&#8217;t heard yet."},"content":{"rendered":"<div>\n<div><\/div>\n<p>Look at the <strong>end<\/strong> of each answer. It stops changing. <code>\u2026625<\/code> shows up and never leaves, then <code>\u202690625<\/code>, then <code>\u2026890625<\/code>. Each step locks in at least one more digit on the right, sometimes several at once.<\/p>\n<p>Keep squaring forever and the ending freezes into one endless number that runs off to the <strong>left<\/strong>: <\/p>\n<div>\n<pre><code>\u2026918212890625 <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>and here&#8217;s the weird part: that number is its own square. Check the last few digits yourself: <\/p>\n<div>\n<pre><code>90625 \u00d7 90625 = 8212890625 \u2190 ends in 90625 again <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p><a href=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto\/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flhd5gk1tumdjjg27clgu.gif\"><\/a><\/p>\n<h2> <a name=\"2-it-has-a-twin\" href=\"#2-it-has-a-twin\"> <\/a> 2. It has a twin <\/h2>\n<p>There&#8217;s exactly one other ending like that (besides 0 and 1). It starts from 6: <\/p>\n<div>\n<pre><code>9376 \u00d7 9376 = 87909376 \u2190 ends in 9376 again <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>Now add the two endings: <\/p>\n<div>\n<pre><code>90625 + 9376 = 100001 <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>Carry that on forever and the twins <code>\u2026918212890625<\/code> and <code>\u2026081787109376<\/code> add up to exactly <strong>1<\/strong>. Multiply them and you get exactly <strong>0<\/strong>. Two numbers, neither of them zero, that multiply to zero.<\/p>\n<h2> <a name=\"3-now-1nbsp%C3%B7nbsp7\" href=\"#3-now-1nbsp%C3%B7nbsp7\"> <\/a> 3. Now 1&nbsp;\u00f7&nbsp;7 <\/h2>\n<p>Everyone knows this one: <\/p>\n<div>\n<pre><code>1 \u00f7 7 = 0.142857142857\u2026 <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>The digits <code>142857<\/code> repeat to the right, forever. Now divide these by 7: <\/p>\n<div>\n<pre><code>1001 \u00f7 7 = 143 1000000001 \u00f7 7 = 142857143 1000000000000001 \u00f7 7 = 142857142857143 <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>Same digits. Except now they grow to the <strong>left<\/strong>.<\/p>\n<p><a href=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk4ghwaegfp0pgxxb3pch.png\"><\/a><\/p>\n<p>Carry it on forever and you get <code>\u2026142857142857143<\/code>, a number with no decimal point that, times 7, is exactly 1. In the world where digits run left forever, <strong>1&nbsp;\u00f7&nbsp;7 is a whole number<\/strong>.<\/p>\n<p>(Try <code>1001 \u00f7 11<\/code> and <code>1000000001 \u00f7 13<\/code> against <code>1 \u00f7 11<\/code> and <code>1 \u00f7 13<\/code>. Same trick.)<\/p>\n<h2> <a name=\"this-isnt-crank-maths-its-129-years-old\" href=\"#this-isnt-crank-maths-its-129-years-old\"> <\/a> This isn&#8217;t crank maths. It&#8217;s 129 years old. <\/h2>\n<p>These are the <strong>10-adic numbers<\/strong>, the base-10 cousin of the <a href=\"https:\/\/en.wikipedia.org\/wiki\/P-adic_number\" target=\"_blank\" rel=\"noopener noreferrer\">p-adic numbers<\/a> Kurt Hensel introduced in 1897. One rule changes: two numbers count as close when their <strong>endings<\/strong> match. In that world, <code>\u2026999999<\/code> is -1, <code>\u2026666667<\/code> is 1\/3, and <code>\u2026890625<\/code> is a perfectly good number that equals its own square (it&#8217;s called an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Automorphic_number\" target=\"_blank\" rel=\"noopener noreferrer\">automorphic number<\/a>).<\/p>\n<p>Your calculator can only ever see the last few digits, so it can&#8217;t play here. So I built something that can.<\/p>\n<h2> <a name=\"past-forever-infinite-loops-that-finish\" href=\"#past-forever-infinite-loops-that-finish\"> <\/a> Past Forever: infinite loops that finish <\/h2>\n<p><a href=\"https:\/\/github.com\/connabyss\/past-forever\" target=\"_blank\" rel=\"noopener noreferrer\">Past Forever<\/a> is a tiny language where you write the loop that never ends, and it hands you the answer <strong>after<\/strong> forever. Then your program keeps going. <\/p>\n<div>\n<pre><code>x = 5 forever: x = x \u00d7 x show x show x \u00d7 x = x <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<div>\n<pre><code>\u2026918212890625 yes (proved) <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<div>\n<pre><code>x = 1 \/ 7 show x show x \u00d7 7 <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<div>\n<pre><code>\u2026857142857143 (this is 1\/7) 1 <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<div>\n<pre><code>x = 0 step = 9 forever: x = x + step step = step \u00d7 10 show x show x + 1 <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<div>\n<pre><code>\u2026999999999999 (this is -1) 0 <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>It never stores infinitely many digits. It finds the pattern and proves where it goes. That&#8217;s why <strong>your calculator rounds, and Past Forever doesn&#8217;t.<\/strong><\/p>\n<h3> <a name=\"its-allowed-to-say-i-dont-know\" href=\"#its-allowed-to-say-i-dont-know\"> <\/a> It&#8217;s allowed to say &#8220;I don&#8217;t know&#8221; <\/h3>\n<p>Every forever loop ends in one of three honest answers:<\/p>\n<div>\n<table>\n<thead>\n<tr>\n<th>answer<\/th>\n<th>example<\/th>\n<th>what it prints<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>a number, with proof<\/strong><\/td>\n<td>square 5 forever<\/td>\n<td><code>\u2026918212890625<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>never settles, with proof<\/strong><\/td>\n<td>square 6 forever<\/td>\n<td> <code>never settles<\/code> (the last two digits go 36, 96, 16, 56 forever)<\/td>\n<\/tr>\n<tr>\n<td><strong>can&#8217;t see the end<\/strong><\/td>\n<td>196, reverse and add forever<\/td>\n<td><code>can't see the end<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Searches over infinitely many numbers work too: <\/p>\n<div>\n<pre><code>found = no n = 0 forever: n = n + 1 if n \u00d7 n ends in 7: found = yes show found <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<div>\n<pre><code>no (proved) <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>That checked every square there is. Ask <code>why found<\/code> and it shows its work: the last digit of a square repeats every 10 steps, so 10 cases cover forever, and none of them ends in 7.<\/p>\n<h3> <a name=\"hunting-liars\" href=\"#hunting-liars\"> <\/a> Hunting liars <\/h3>\n<p>Point it at a whole range at once: <\/p>\n<div>\n<pre><code>hunt c from 0 to 99: x = 0 forever: x = x \u00d7 x + c show x <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<div>\n<pre><code>hunt c from 0 to 99: tried 100 numbers, 5 kinds of answer settles 10 0, 10, 20, 30, 40, 50, 60, 70, \u2026 ring of 6 10 1, 11, 21, 31, 41, 51, 61, 71, \u2026 goes wild 40 2, 3, 7, 8, 12, 13, 17, 18, \u2026 ring of 2 30 4, 5, 9, 14, 15, 19, 24, 25, \u2026 ring of 3 10 6, 16, 26, 36, 46, 56, 66, 76, \u2026 <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>Some of the wild ones are <strong>liars<\/strong>. Their last digits go round a calm ring of 2, digit after digit, and then one digit breaks the pattern. With c = <code>85205078123<\/code>, the last 13 digits behave perfectly before it goes wild. The calmest liar found so far, c = <code>1280715354564332311432<\/code>, keeps it up for 31 digits.<\/p>\n<p><a href=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto\/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flhgbok2h8rr541b2h1i2.gif\"><\/a><\/p>\n<h2> <a name=\"break-it-please\" href=\"#break-it-please\"> <\/a> Break it (please) <\/h2>\n<p>A language that says &#8220;proved&#8221; had better be right. Every build, a robot referee throws 3,000 random loops at it and checks every answer against plain arithmetic. Outside AIs were invited to break it, and two found real gaps: a loop that <strong>starts<\/strong> on its own answer, and a change hidden past digit 40. Both are fixed, and both are in the Hall of Fame.<\/p>\n<p>Your turn. Get in the <a href=\"https:\/\/github.com\/connabyss\/past-forever#hall-of-fame\" target=\"_blank\" rel=\"noopener noreferrer\">Hall of Fame<\/a> by finding:<\/p>\n<ul>\n<li>a loop where it says <code>proved<\/code> and is <strong>wrong<\/strong>,<\/li>\n<li>a loop where it says <code>can't see the end<\/code> but you can, or<\/li>\n<li>a liar calmer than 31 digits.<\/li>\n<\/ul>\n<p><strong>Try it in your browser, no install, works on a phone:<\/strong> <a href=\"https:\/\/connabyss.github.io\/past-forever\/\" target=\"_blank\" rel=\"noopener noreferrer\">connabyss.github.io\/past-forever<\/a><\/p>\n<h2> <a name=\"honest-notes\" href=\"#honest-notes\"> <\/a> Honest notes <\/h2>\n<ul>\n<li> <strong>The maths is old.<\/strong> 10-adic numbers (Hensel, 1897), automorphic numbers, and Cantor&#8217;s ordinals (it can count to <code>forever + 1<\/code>). What&#8217;s new, as far as I found, is a language you can run where code keeps going after a forever loop.<\/li>\n<li> <strong>&#8220;proved&#8221; means proved by the rules in <a href=\"https:\/\/github.com\/connabyss\/past-forever\/blob\/main\/forever.js\" target=\"_blank\" rel=\"noopener noreferrer\">forever.js<\/a>.<\/strong> No mathematician has reviewed them yet. The referee is a strong check, not a proof.<\/li>\n<li> <strong>I built it with Claude Code<\/strong> (Anthropic&#8217;s AI) in about a day, and Claude helped write this post. I asked it for a strange new language that would grow out of playing with numbers, and picked the idea of a loop that finishes. The liars turned up while hunting with it.<\/li>\n<\/ul>\n<p>So, what&#8217;s the strangest loop you can think of? Write it in the comments and I&#8217;ll run it through Past Forever.<\/p>\n<\/p><\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>Fuente: <a href=\"https:\/\/dev.to\/connabyss\/17-is-a-whole-number-your-number-system-just-hasnt-heard-yet-33od\">Art\u00edculo original<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Look at the end of each answer. It stops changing. \u2026625 shows up and never leaves, then \u202690625, then \u2026890625. Each step locks in at least one more digit on the right, sometimes several at once. Keep squaring forever and the ending freezes into one endless number that runs off to the left: \u2026918212890625 and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7045,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"webixso_pending_account_ids":""},"categories":[41],"tags":[],"class_list":["post-7046","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devto"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/posts\/7046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/comments?post=7046"}],"version-history":[{"count":0,"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/posts\/7046\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/media\/7045"}],"wp:attachment":[{"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/media?parent=7046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/categories?post=7046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/tags?post=7046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}