Kaprekar Series

Ha! Finally I published the pages I had created on the Kaprekar routine/series/numbers; also made the code/software for Kaprekar series generation available for public download. Check it out at Kaprekar Series Generator.

Wednesday, July 13, 2005

on dmoz

Kaprekar Series Generator is listed on dmoz now! It is in the category Top: Science: Math: Number Theory: Software.

Dmoz is the Open Directory project - it is the largest human-edited directory of the Web.

Technorati Tags: , , .

Tuesday, May 03, 2005

Integer Sequences

I was rummaging through the web log of the Kaprekar Series Generater project site to remove http log spam - while working on a Web Path software ... and noticed that KSG is linked to from the AT&T Online Encyclopedia of Integer Sequences.

Technorati Tags: , , .

Friday, January 14, 2005

Kaprekar 3.0 Released

There are two main changes in this release -
a) Parameterized the classes based on Java 5 and
b) Added a pause and resume option.

The pause and resume option holds only for the current run of Kaprekar. I plan to allow a "save state" feature in a future version where the user can save the current state of the Kaprekar run in a file and exit the application. Later, the user may "load the state" and resume the Kaprekar run.

The Kaprekar Series Generator allows you to determine the kaprekar series for any given number of digits (ranging from 2 to 2,147,483,647).

It provides both a command line as well as a GUI (java swing based) interface.

This release is written in Java 5, so you'll need the latest JDK to compile and run it.

To read more about the Kaprekar Series and to see some of the output from the Generator, check out the project web site http://kaprekar.sourceforge.net.

The GUI allows you to pause the generation of the Series at any time and then allows you to resume the generation. You can also run it in the "demonstrate" mode where you specify a number and the GUI steps it though the Kaprekar Routine. It determines the Kaprekar Series that number would lead to.

Thursday, October 28, 2004

Kaprekar 2.2b

Released version 2.2b of Kaprekar Series Generator yesterday night.

This is more of a code refactoring release. The code was changed to be more modular. The serialization, SVG generation and statistics code had crept into the Kaprekar Engine. I extracted those into separate classes - this also fixed some cut-and-paste code.

The only bug-fix in this code is for the progress bar in the GUI - the progress bar would not show the progress while searching for Kaprekar Series with more than 19 digits. This is fixed now. Well I had written the code, but for some reason I didn't invoke it. Ok, I thought it was an expensive call so didn't invoke it. Now I'm keeping track of the heartbeat and invoking it initially every 50 heartbeats and then every 500 heartbeats. It didn't seem to have too much of an overhead.

This change was in preparation of moving Kaprekar Series Generator to Java 1.5 to use the new language features.

Sunday, July 11, 2004

Graphs in Playing with Numbers

Before plotting the graphs in the Playing with Numbers and before even gathering the data required for them, I listed out some of the possible graphs that I could plot. Some of these graphs did show up in that article. Some are yet to be plotted and some I did plot, but didn't like the output.

Here's the list:

1. Plot Number of patterns (y-axis) against #digits (x-axis).
2. # of series of apttern size (y-axis) against #digits (x-axis) - a graph for each pattern size plotted in the same sheet.
3. Max number of iterations (y-axis) against #digits (x-axis).
4. # of numbers (y-axis) against #digits (x-axis) with a graph for each #iterations in the same sheet.
5. For a given #digits #numbers (y-axis) against series (x-axis).
6. For a given #digits Series (y-axis) against number (x-axis).
7. For a given number iteration number (y-axis) against number at a given iteration (x-axis).
8. For a given number, over iterations, min number (y-axis) against max number (x-axis). [and various other combinations].

Saturday, July 03, 2004

CSS Valid

Ensured that the CSS used for the Kaprekar Site is valid and added W3C's CSS-valid icon.


Added a Glossary to the Kaprekar site.

Thursday, July 01, 2004

Bread Crumb Trail.

I've been thinking of adding a Bread crumb trail on the site. Still debating if this trail should be dynamic (i.e. a true trail of the pages that the user accessed) or a static one (hard-coded on the page itself).