Any positive number can be written as a sum of three palindromes
51–60 of 114 posts
Re: Any positive number can be written as a sum of three palindromes
#52For those wondering, this works in every base ≥ 5, according to the original paper: https://arxiv.org/abs/1602.06208v2 Every time I see something like this that is dependent on base-10 representation, I'm always curious to know whether it generalizes, or if it's a quirk specific to base-10 representation. For example, being able to tell if a number is divisible by 2 or 5 by only looking at the last digit.
Re: Any positive number can be written as a sum of three palindromes
#53Wonderful wonderful website. What happends to quirky people like this when they leave university and enter the industry?
Re: Any positive number can be written as a sum of three palindromes
#54i'm underwhelmed 77777777777777 +0 +0 =77777777777777
I got 10,067,892,461 = 9,910,110,199 + 144,959,441 + 12,822,821, which I think is pretty impressive.
Re: Any positive number can be written as a sum of three palindromes
#55Re: Any positive number can be written as a sum of three palindromes
#56Could this trick be used to improve compression? Since palindromes contain repeated digits by definition, perhaps they are more compressible than the original number? Of course, you'd have three numbers to compress instead of one...
Re: Any positive number can be written as a sum of three palindromes
#57Re: Any positive number can be written as a sum of three palindromes
#58> Yes, I can do this for any whole number bigger than zero.
Should say "Yes, I can do this for any whole number zero or bigger." since 0 is a palindrome
Re: Any positive number can be written as a sum of three palindromes
#59For those wondering, this works in every base ≥ 5, according to the original paper: https://arxiv.org/abs/1602.06208v2 Every time I see something like this that is dependent on base-10 representation, I'm always curious to know whether it generalizes, or if it's a quirk specific to base-10 representation. For example, being able to tell if a number is divisible by 2 or 5 by only looking at the last digit.
That still seems like it is generalizable to any base by taking prime factors of any base-n.
Re: Any positive number can be written as a sum of three palindromes
#60Looks like code is at [0]. Didn't read in detail, but how difficult is it to find these 3 palindromes for something like a 100 digit number? Or, asked another way, how hard will it be to crack my new 3-palindrome-sum-factor based encryption scheme (assuming I have rules about not having easy factors)? 0 - https://github.com/christianp/sum-of-palindromes
Uniqueness would be a problem. The sum isn't guaranteed to have unique terms. 2 is (2,0,0) and (1,1,0).
Without thinking the problem through (about to sleep) I wouldn't be surprised if the answer is easily proven to be exponential (aka a firm "nope") but math can be unintuitive at times so I thought I'd ask anyway.
I ask because, if the maximum number of potential matches isn't exponential (or is at least <= 3 digits long), it might be plausible to read through the number of matches to find "interesting" (elegant-looking) ones.