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

Home > Just Math
More than a million, less than ten (Posted on 2015-01-06) Difficulty: 2 of 5
This number can be expressed: - by 4 distinct digits in bases 4,8,10; - by 5 distinct digits in bases 6,7,11,15 and - by 6 distinct digits in base 16.

There is no data about other bases.

Find the number.

No Solution Yet Submitted by Ady TZIDON    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution re(2): More than 3000, less than 8, computer solutions | Comment 3 of 4 |
(In reply to re: More than 3000, less than 8, computer solutions by Ady TZIDON)

Adding the bolded code below

         v16$ = base$(v, 16)
         If dnumct(v16$) = 6 Then
           good = 1
           For i = 1 To Len(v16$)
             ix = InStr("0123456789abcdef", Mid(v16$, i, 1))
             Select Case i
              Case 1
                pix = ix
              Case 2
                diff = ix - pix
                pix = ix
              Case Else
                If ix - pix <> diff Then good = 0: Exit For
                pix = ix
             End Select
           Next i
         v10$ = base$(v, 10)
         If dnumct(v10$) = 4 And good = 1 Then

reduces the solutions to 1:
     4           8         10        6          7         11      15       16   
121110030201  31241441  6636321  354123413  110256606  3822a6a  8b14b6  654321


  Posted by Charlie on 2015-01-09 08:29:13
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (0)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information