T-Shirt #3

[Home]   [Projects]    [Delphi Techniques]   [Math Topics]   [Library]   [Utilities]

 

Available Now

Search

Google
 

Search WWW             

Search delphiforfun.org

Contact

Feedback:  Send an e-mail with your comments about this program (or anything else).

Help support DFF

 If you benefit from the website,  in terms of knowledge, entertainment value, or something otherwise useful, consider making a donation via PayPal  to help defray the costs.  (No PayPal account necessary to donate via credit card.)  Transaction is secure.

 

Google
 

Search WWW

Search delphiforfun.org

 

 

Problem Description

The third in the "T-Shirt" series:  

Back of T-Shirt:  "The only known non-palindromic number whose cube is palindrome"

Front:  __ __ __ __ ?

Background & Techniques

I ran across this problem in Chapter 3 of Martin Gardner's book, "The Colossal Book of Mathematics".   He reports that C.W. Trigg proved in 1961 that there is only a single palindromic cube less than 1,953,125,000,000 whose cube root is not a palindrome.  The program presented here  proves the same fact for numbers up to 1018  (cube roots up to 1,000,000).

Palindromic integers, by the way, are  those that have the same value when written in reverse order. 

It seems difficult to believe, but Gardner states that it is not known if there are any  non-palindromic numbers whose cubes are palindromes other than the one presented here. 

This program has only  about 40 lines of user written code, well within the simple program category, so not much discussion is required.   We loop through integers from 10 to 1,000,000 checking whether their cubes are palindromes in an IsPalindrome function.  If yes, then add the number and it's cube to a listbox display.  Periodically, every 32768 numbers (powers of 2 are fastest for this test), we execute a small loop and call application.processmessages to let the display update and to process any pending Stop button click message.     The general form property, Tag, is used as stop flag; set by the Stop button and checked within the search loop.     

Running/Exploring the Program 

Suggestions for Further Explorations

  • Prove that that the result found by this program is the only number meeting the criteria. (:>).

 

Originally posted: April 23,2002 Modified:July 21, 2006
 

  [Feedback]   [Newsletters (subscribe/view)] [About me]
Copyright © 2000-2008, Gary Darby    All rights reserved.