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
Reciprocal links
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

Disappearing lines

Here the task is similar to that of shifting staircases. In the applet below, there again are two parts - a stationary lower part and a moving upper part. To open the eyes one should slide the upper part up and to the right one notch.


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.


Now, if you count the number of lines displayed, you'll discover that, compared to the original diagram, there is one line less. I assure you that no cheating is involved here. You could perform this trick on a piece of paper with the same result. Where did the line go?

Actually nowhere. The total length of the newly obtained lines is the same as the total length of the original ones.

This puzzle may seem to have little educational content. But this is not the case. Try to figure out how the moving part has been implemented. Everything is being drawn in real time. How would you do this?

A second reason for my creating the applet is what's called nowadays software reuse. Writing software is a very expensive and error prone undertaking. About 9-10 years ago it was realized what great advantage might be drawn from creating reusable components which eventually lead to the appearance of Object-Oriented languages and programming. Java is such an object-oriented language. I'd consider this a sin not to make a good use of Java's object-oriented nature.

This puzzle is described by Martin Gardner in his delightful "aha! Gotcha".

Copyright © 1996-2008 Alexander Bogomolny

28735592Page copy protected against web site content infringement by Copyscape


Search:
Keywords:


Latest on CTK Exchange
Math
Posted by Laura
2 messages
06:56 AM, Apr-15-08

Divisibility rules - Jargon buste ...
Posted by Carolyn
2 messages
08:35 AM, Apr-04-08

drawing puzzle
Posted by martin gran
31 messages
06:53 PM, May-09-08

conway's game of life
Posted by frequency
0 messages
11:52 PM, May-12-08

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

Deriving functions based on diffe ...
Posted by ke_45
1 messages
12:47 PM, May-10-08

Josephus Flavius (correction)
Posted by David Turner
0 messages
08:17 AM, May-14-08