Date: Mon, 5 Mar 2007 21:21:24 -0300 From: Paulo Ortolan (paulo.ortolan(AT)gmail.com) Java Code for A005150 *public class DescribePrevious { public static void main(String[] args) { char[] cSeq = new char[] {'1'}; char s = 0; int count = 0; String newSeq = ""; System.out.println(new String(cSeq)); for(int i = 0; i < 20; i++) { for(int j = 0; j < cSeq.length; j++) { if(j == 0) { s = cSeq[j]; count++; } else { if(s == cSeq[j]) { count++; } else { newSeq += count + "" + s; count = 1; s = cSeq[j]; } } } newSeq += count + "" + s; System.out.println(newSeq); cSeq = newSeq.toCharArray(); newSeq = ""; count = 0; } } } -- Paulo Henrique Ortolan Java Developer