Let's turn all of this amateur mathematical rambling about repeating 9's into something useful: What's the most efficient PIC code (execution time) to determine if a number is evenly divisible by 9? I think it can be done in 12 instructions, right Dmitry. Scott -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics