Reply
Thu 19 Feb, 2009 06:41 pm
the difference between adjacent numbers is always bigger than one, and the first two digits, (read as one number), as well as the two middle digits,(read as one number), are multiples of the last two digits (read as one number)
@epenthesis,
That no workie. 2 & 3 are adjacent, and the difference is not greater than one.
@solipsister,
Wouldn't 09 be a factor, not a multiple?
725418 is wrong because 5 and 4 are adjacent.
720918 is wrong because 09 breaks the odd/even alternating pattern.
There are five solutions that satisfy all requirements:
181818
183618
361818
363618
903618 (the only solution with unique digits, although that wasn't a requirement)
@markr,
Oops - I overlooked two more solutions:
383838
585858
@michael912,
an even number is defined as any number 2n where n is an integer
0 is and integer and 2(0) = 0.. so I am going to say that 0 is even.
That being said, your code is
903618