In any base?
Any positive number can be written as a sum of three palindromes
71–80 of 114 posts
Re: Any positive number can be written as a sum of three palindromes
#72For 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.
> 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.
(Also, the digital root test, where you add up the digits, works for any divisor that is also a divisor of the base minus 1, so for example hexadecimal has a digital root test for divisibility by 3, 5, or 15.)
Re: Any positive number can be written as a sum of three palindromes
#73Earlier quoted context omitted.
> 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.
There's a stronger generalization: it's true of any divisor of the base (not just prime divisors and not just proper divisors). For example, it works for divisibility by 6 in base 12, or divisibility by 10 in base 10. (Also, the digital root test, where you add up the digits, works for any divisor that is also a divisor of the base minus 1, so for example hexadecimal has a digital root test for divisibility by 3, 5,…
Re: Any positive number can be written as a sum of three palindromes
#74If a(n) is the number of ways to write n as the sum of three palindromes, the sequence a(0), a(1), a(2), a(3) is kind of interesting. http://oeis.org/A261132
Re: Any positive number can be written as a sum of three palindromes
#75Earlier quoted context omitted.
I think they're saying that 002 is counted as a palindrome, but 112 would not be. (2 == 002 but 112 != 211 which is an "unfair" property of the number zero)
If 2 is not a palindrome, because if you prepend 0 it loses its palindrome properties, then no number is a palindrome. 121 cannot be a palindrome because 121 can also be written as 0121, and therefore it’s not a palindrome. Further, there is nothing “unfair” about 0. It’s a real distinction. 002 is the same thing as 2. 112 is not the same thing as 2. So it’s not an unfair property. It’s a real distinction.
Re: Any positive number can be written as a sum of three palindromes
#76Re: Any positive number can be written as a sum of three palindromes
#77Wonderful wonderful website. What happends to quirky people like this when they leave university and enter the industry?
Is there such a thing as "interactive nonfiction"? Because if not, there should be. Design educational websites this way and watch children learn.
Re: Any positive number can be written as a sum of three palindromes
#78For 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.
And according to the Numberphile video ( https://www.youtube.com/watch?v=OKhacWQ2fCs ) there is a prior paper showing it for bases 2, 3, and 4
Re: Any positive number can be written as a sum of three palindromes
#79For 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
#80Why three? Anyone have a theory (or the answer)?