All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 All Odds (Posted on 2014-02-24)
Let n be an integer greater than 1. If all digits of 9997*n are odd, find the smallest possible value of n.

 No Solution Yet Submitted by Danish Ahmed Khan No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
 computer solution Comment 2 of 2 |

DEFDBL A-Z
CLS
FOR n = 3 TO 9999 STEP 2
pr = n * 9997
p\$ = LTRIM\$(STR\$(pr))
good = 1
FOR i = 1 TO LEN(p\$)
IF INSTR("02468", MID\$(p\$, i, 1)) > 0 THEN good = 0
NEXT
IF good THEN PRINT n, pr
NEXT

finds

`  n            9997*n3335          333399953341          333999773355          335399353361          335999173401          339997973535          353393953541          353993773555          355393353561          355993173601          359991974001          399979975335          533339955341          533939775355          535339355361          535939175401          539937975535          553333955541          553933775555          555333355561          555933175601          559931976001          59991997`

 Posted by Charlie on 2014-02-24 12:34:01

 Search: Search body:
Forums (0)