mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2014-11-10, 15:27   #12
MattcAnderson
 
MattcAnderson's Avatar
 
"Matthew Anderson"
Dec 2010
Oregon, USA

25·52 Posts
Wink

The only solution I know about is 6210001000.
Luis, Science man and Mawn, thank you for participating.
I found this puzzle at www.mathisfun.com

Regards,
Matt
MattcAnderson is offline   Reply With Quote
Old 2014-11-10, 17:42   #13
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts
Default

Quote:
Originally Posted by TheMawn View Post
And sure enough:

B21,000,000,001,000
A2,100,000,001,000
9,210,000,001,000
821,000,001,000
72,100,001,000

Essentially, there's as many 0's as you want, a first digit indicating that number of zeros, and then a 1 for that digit. Then, you trigger an extra 1 for the number of 1's, giving you a 2 for the number of 1's, giving you a 1 for the number of 2's (which conveniently replaces the 1 for the number of 1's you had earlier.
Numbers like the one solving this puzzle, but for more generalized bases, were discussed at Math SE.

Last fiddled with by Mini-Geek on 2014-11-10 at 17:45
Mini-Geek is offline   Reply With Quote
Old 2014-11-10, 18:03   #14
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by retina View Post
This is an old puzzle. And since the first two posters haven't yet found a result I'll not give away a solution edit: I see one poster has since edited and given a solution for base 10.

But there is a simple function that can generate such numbers for any arbitrary integer base except 2, 3, 6 and 7. I think it would be more interesting to try and find the general function first and then get the answer for the OPs question in base 10.
Code:
tendigitpuzzle(p,a)=for(x=a^(p-1),a^p-1,if(vecsum(digits(x,a))==p,b=0;for(y=0,p-1,if(#select(v->v==y,digits(x,a))==digits(x,a)[y+1],b=b+1));if(b==p,print(x))))
I actually solved it base 10 first. and yes I know PARI is slow. edit:okay there's a much easier version of this in theory using partitions that are padded with 0 and can't include the number of digits minus 3,2,or 1 at least instead of changing it to print digits(x,a).

Last fiddled with by science_man_88 on 2014-11-10 at 18:46
science_man_88 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Generating from 16 to 35 digit number in row (+1) pepi37 Math 10 2018-03-02 16:50
Factor a 108-digit number sweety439 Factoring 9 2016-12-21 21:22
Number Puzzle davar55 Puzzles 7 2011-04-15 19:29
100 MILLION DIGIT NUMBER lpmurray Software 8 2004-05-31 19:22
10,000,000 digit number Unregistered Software 3 2004-03-03 19:20

All times are UTC. The time now is 03:53.


Sat Jul 17 03:53:59 UTC 2021 up 50 days, 1:41, 1 user, load averages: 1.75, 1.87, 1.74

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.