play and relax: games for kids games
  Cut the knot: learn to enjoy mathematics
A math books store at a unique math study site. Learn to enjoy mathematics.
Google
Web CTK
Best sites for teachers
Sites for teachers
Sites for parents
Terms of use
Awards

Interactive Activities
CTK Exchange
CTK Insights - a blog

Games & Puzzles
What Is What
Arithmetic/Algebra
Geometry
Probability
Outline Mathematics
Make an Identity
Book Reviews
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
Visual Illusions
My Logo
Math Poll
Cut The Knot!
MSET99 Talk
Other Math sites
Front Page
Movie shortcuts
Personal info
Privacy Policy

Guest book
News sites

Recommend this site

Best sites for teachers
Sites for teachers
Sites for parents

Education & Parenting

Manifesto: what CTK is about Search CTK Buying a book is a commitment to learning Table of content Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

Self-documenting Sentences

Self-documenting sentences of the sort offered by the applet below, have been invented by Raphael Robinson [Hofstadter, p 27 and p 389 and on; see also Gale, p 10]. The puzzle is to fill in the blanks in "This sentence contains _ 0's, _ 1's, _2's, _ 3's, _ 4's, _ 5's, _ 6's, _ 7's, _ 8's, and _ 9's" so that the sentence become true. A curious approach to solving the puzzle is by iterations. Fill blanks arbitrarily, count the number of 0's, 1's and so on, and feed thus obtained numbers back into the sentence in place of the initial selection. Again count the number of various digits and substitute the result into the sentence. The iterations are documented in the drop-down box at the bottom of the applet. (The "Clear" button clears the contents of the box.) The truth to be said, such iterations do not always lead to solutions. Sometimes they settle into cycles. Moreover, there are solutions of the repelling sort that can't be obtained by the iterations. So not all fun can be automated. (The "Iterate" button performs a single iteration. The "Auto" button runs until "Stop"ed or until a solution is found. Numbers that fill the blanks can be changed up or down manually by clicking a little off their center line.)


This applet requires Sun's Java VM 2 which your browser may perceive as a popup. Which it is not. If you want to see the applet work, visit Sun's website at http://www.java.com/en/download/index.jsp, download and install Java VM and enjoy the applet.


Buy this applet
What if applet does not run?

Explanation

References

  1. D. Gale, Tracking the Automatic Ant, Springer, 1998
  2. H. P. Ginsburg, Children's Arithmetic, II edition, pro-ed, 1989
  3. D. R. Hofstadter, Metamagical Themas, Basic Books, Inc., 1985

There is also a shortened variant with a different set of solutions.


Copyright © 1996-2008 Alexander Bogomolny

29397631Page copy protected against web site content infringement by Copyscape


Search:
Keywords:


Latest on CTK Exchange
try this puzzle ?/?? + ?/?? + ?/? ...
Posted by albert1950
0 messages
07:05 AM, Jul-10-08

Monty Hall Problem
Posted by linkdon
71 messages
03:06 PM, Jul-18-08

Missing information
Posted by roboknight
2 messages
07:32 AM, Jun-22-08

Golden Number linked to 666
Posted by Titus
4 messages
02:53 PM, Jul-19-08

Mistake on the page (an aside, Be ...
Posted by Max
4 messages
10:28 AM, Feb-28-08

trisection of an angle
Posted by Pytheus
2 messages
06:39 AM, Jul-14-08

You can drill a square hole
Posted by Giorgis
1 messages
10:15 PM, Jul-12-08