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

 Evened N and 3N (Posted on 2019-05-18)
How many 3 digit numbers N are there such that the digits of N and 3N are all even? (There is no restriction on the number of digits of 3N)

 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 1 of 1
There are 24:

`N       3N200    600202    606208    624220    660222    666228    684268    804280    840282    846288    864668    2004680    2040682    2046688    2064800    2400802    2406808    2424820    2460822    2466828    2484868    2604880    2640882    2646888    2664`

``` For n = 200 To 888 Step 2
n3 = n * 3
tst\$ = LTrim(Str(n)) + LTrim(Str(n3))
good = 1
For i = 1 To Len(tst)
If InStr("02468", Mid(tst, i, 1)) = 0 Then good = 0: Exit For
Next
If good Then ct = ct + 1: Text1.Text = Text1.Text & n & "    " & n3 & crlf
Next```

 Posted by Charlie on 2019-05-18 14:07:48

 Search: Search body:
Forums (4)