About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
February 2011
You can solve this challenge in several ways. By exhaustive search (checking all the possibilities), you can obtain the smallest answers: 5000261920005 for conditions A,B,and C, and 10962025901110652029601 for conditions A,B,and C'.
A simpler solution is to examine numbers of the form 10^n+1 (100...001), which fulfill conditions A and B, and choose n such that condition C is fulfilled too. The first such solution is 10^335+1.
10^n+1 will never fulfill condition C', so other patterns must be found. A possible solution is 5005*(10^303+1).
If you have any problems you think we might enjoy, please send them in. All replies should be sent to: ponder@il.ibm.com