$2017:$ Was initially asked on MSE - but wasn't solved or updated there since.
Update $2019$: I've returned to this problem, made some progress and updated the post here.
(I've basically rewritten this entire post here)
**Introduction and problem**---------------------------- An $k$-palindrome is a number palindromic in $k$ consecutive number bases. Here, I'm wondering about the existence of $k=4$. Note that if it does not exits, $k\gt 4$ can't exist by definition.
Also note that if a number is even length (number of digits is even) palindrome in base $b$, then it is divisible by $b+1$ and thus can't be palindromic in that number base. So we can look for odd length cases of digits in the first (last, depending on how you define it) base only.
Was initially asked on MSE - but wasn't solved, and still isn't.
Smallest number $N$ which is nontrivially palindromic in $x$$k$ consecutive number bases:
$$
\begin{array}{|c|}
\hline
x& N & \text{Palindrome} \\ \hline
1& 3 & 11_2 \\
2& 10 & 101_3=22_4\\
3& 178 & 454_6 =343_7 = 262_8\\
4& ?& \\ \hline
\end{array}
$$$$
\begin{array}{|c|}
\hline
k& N & \text{Palindrome} \\ \hline
1& 3 & 11_2 \\
2& 10 & 101_3=22_4\\
3& 178 & 454_6 =343_7 = 262_8\\
4& ?& \\ \hline
\end{array}
$$
Solution forWhere the index denotes the number base representation. For example $x=4$ probably does$11_2$ is three in binary.
Note that $k=1$ is not exist;special as those are just palindromes and easily can be constructed.
It is not hard to see $k=2,3$ have infinitely many examples. But finding all of them is hard.
I conjecture solution for $k=4$ does not exist. That is,
there are no $4$-palindromes.
My question here is:
Can you provide arguments (help) or direction (on proving) why (why not) would this be true?
My ideas are presented below:
**First approach to proving this** One idea I had is to rely on these observationsprove this is proving (taken in short, from below)$(1)$ and $(2)$ which would imply this. The $(1)$ is now proven. The $(2)$ will be much harder to prove. The details are included below. Here are the claims:
$(1)$ ThatA $3$ digit numbers will never be palindromic in four consecutive bases , where by 3 digits I mean the 3 digits when(when written in the consecutive palindromic bases) number can't be a $4$-palindrome.
$(*)$ all numbers palindromic in $3$ out of$(2)$ To be a $4$ (including first and last in those three) consecutive bases (and not divisible by the other one) have $3$ digits in those bases, except the $2$ observed exceptions so far. (see last paragraph at the end of the post) - in other wordspalindrome, a solution for $x\ge4$ shouldnumber must have $3$ digits (when written in its palindromic bases, if it exists).
But I do not know how to showThe second claim is based on the fact that (prove) these observations to be true.
If $(1)$ and $(*)$ are true, they contradict each other, thus $x\ge4$ does not have a solution.
$$\text{Looking at consecutive palindromes in three bases}$$
We can look at patterns foralmost-all "almost $4$-palindromes" have $3$ digits. That is, numbers palindromic in three out of four consecutive bases (that is, for example in bases $b,b+3$ and either $b+1$ or $b+2$).
It was shown on MSE forAlmost-all since the 3 digit pattern, those solutions won't extend to a fourth base, which isn't hard to see. If only we could also showtwo known "almost $4$-palindromes" that thesedo not have $3$ digits are the only solutions$71240, 1241507$ which have $5$ digits (including the one exception)when talking about digits, then $(1)$they are counted in the "pivot" number base among the consecutive bases in which the number is true.
The patterns for other digits so far seem to follow with similar patternspalindromic - "pivot" being either the smallest or largest base).
$(0)$ Lets start by excluding even length palindromes Proving ($2p$ digits$(2)$ is equally hard as proving $(3)$ from alternate approach below,
$p\in\mathbb N$) since they can'tall cases of $d$ must be palindromic in consecutive number
basesresolved. This follows directly from the fact that a palindrome in base
$b$ is divisible byThe $b+1$$(1)$ specifically asked to resolve $d=3$ which was accomplished.
(To be more precise, I consider base $b$ for digits and bases $b+1,b+2,\dots$ for additional consecutive bases; Example of $10=101_3=22_4$
is contained as $3$ digit example for $x=2$ consecutive bases in those two bases.)
**Second approach to proving this**
Following that, then we choose to observe odd digit length palindromes
of$(3)$ I actually conjecture I have found all $2d+1$ digits$3$-palindromes. If this is true, then a $d\in\mathbb N$, which are palindromic in$4$-palindrome does not exist since neither of my $3$ consecutive$k=3$ solutions can be extended to a fourth consecuitve number bases $b\in\mathbb N \ge 2$, and we have so far ($x=3$):base.
$$\text{ 3 digit examples } (d=1)$$ Pick ($n=2k+3, k\in\mathbb N$), then we get a new example for every $n$,More details are linked at the end of formthe next section:
$$\frac{1}{2}(n^3 + 6n^2 + 14n + 11)$$
Which is palindromic in bases $n+1, n+2, n+3$.
**"$k$-problem system" results and conjectures**---------------------------- Other than these, we have one more exampleWhat I was able to prove both computationally and by hand: $300 = 606_7 = 454_8 = 363_9$
$(1)$ How to show Expanding (prove) that$(1):$ In short, I have proven I have all 3$3$ digit examples other than $300$ are in
this pattern?
(No new exceptions or patterns$3$-palindromes, and nontrivial $d\le 3$ solutions don't exist for. Now it is easy to see now that a $b\lt2333$$3$ digit $3$-palindrome can't be palindromic in fourth consecutive base, so farwhich means $4$-palindromes with $d\le 3$ digits do not exist.
Verified here using python code(Digits counted when written in palindromic number bases).
More details about this are linked at the end of this section, as well.
You can see that the first pattern emerges at number base $b=6$, and no new patterns emerge for the next $2300$ number bases, which makes the existence of a second pattern (or more exceptions) very unlikely. Expanding $(3):$ What I was able to conjecture is presented below:
$$\text{ 5 digit examples } (d=2)$$ Pick ($n=4k+40, k\in\mathbb N$)In short, then we get a new example for every $n$,can write the problem of form:
$$\frac{1}{4}(3n^5 + 30n^4 + 125n^3 + 270n^2 + 307n + 148)$$
Which is palindromicfinding $k$-palindromes in basesform of solving linear diophantine equations whose order grows when solving for longer palindromes of length $n+1, n+2, n+3$; No other examples$d$ (exceptionsnumber of digits) exist.
$(2)$ How to show (prove) that all 5 digit examples are in
this pattern?
(No exceptions or new patterns exist for $b\le333$, so far.
Verified here using python code)
$$\text{ 7 digit examples } (d=3)$$Update: Based on computed examples and observations so far, multiple patterns and exceptions seem Lets call that system needed to exist for this casebe solved "$k$-problem system". Three patterns seem to exist:
Pick ($n=2k+79, k\in\mathbb N\cup \{-3,-2,-1\}$)There is the "general", and there are infinitely many examplesis the "non-general" case of form:
$$\frac{1}{2}(n^7+14n^6+88n^5 + 320n^4 + 718n^3 + 980n^2 + 748n + 247)$$this problem system.
PickThe non-general $k$-problem system is related to finding $d=2l+1$ ($n=6k+67, k\in\mathbb N\cup \{-2,-1,0\}$WLOG $d$ is odd) digit solutions, there are infinitely many examples of form:
$$\frac{1}{6}(n^7+14n^6+88n^5 + 320n^4 + 718n^3 + 980n^2 + 748n + 245)$$where all representations in consecutive bases have exactly $d$ digits.
PickThe general ($n=12k+24, k\in\mathbb N$), there are infinitely many examples$k$-problem system allows different lengths of form:
$$\frac{1}{12}(2 n^7 + 30 n^6 + 209 n^5 + 852 n^4 + 2117 n^3 + 3114 n^2 + 2474 n + 816)$$
All examples generated by the above are palindromicdigits in those $k$ consecutive number bases, where "pivot" number base among these $k$ consecutive number bases, usually smallest or largest, is taken to have $n+1, n+2, n+3$$d$ digits.
Beside patterns, we have exceptions,The (examples that do not fit into any patterns)$k=2$ case has infinitely many solutions for every case of :$d$. It is hard to find them all.
9 3360633
13 19987816
15 43443858
22 532083314
26 1778140759
28 2721194733
28 11325719295
36 47622367425
40 97638433343
42 224678540182
43 265282702996
48 561091062285
These are palindromic in column given base $b$ and basesThe $b+1,b+2$.$k=3$ is what will be the case of the "problem-system" from now on:
$(3)$ How to show Expanded on (prove) that all 7 digit examples other than these
$12$ exceptions are$(3)$ in onethis context:
For the non-general case of these three patternsthe "problem-system", I have computationally solved (that these are the
only patternsproved)?
I have all solutions for two smallest cases, $d=3,5$. I also strongly conjecture same is true for $d=7$. I also conjecture based only on computation, that a $3$-palindrome solution for $d\ge 9$ does not exist. That is, I conjecture I have all solutions.
For the general case of the "problem-system", I have computationally solved (No new exceptions or patterns existproved) I have all solutions for $b\le111$smallest case, so far$d=3$.
Verified
here
using I also conjecture I have all solutions for python
code$d\ge 5$ since another conjecture I strongly believe is that the general case is equivalent to the non-general case, except for having an extra finite set of solutions for sufficiently small bases $b$ which I have collected and computed all (conjectured).
$$\text{ 9 digit examples } (d=4)$$
No examplesSumming this all up: the important thing is I have been found so far. I've checked number basesall $b\le50$ so far,$3$ digit here$3$-palindromes and that they can't be $4$-palindromes.
$$\text{ 11 or more digit examples } (d\ge5)$$ Haven't searched I have all conjectured solutions for examples yet$3$-palindromes, asbut unable to prove the fact that large $d=4$ is already taking a long time per number base$d$ can't have solutions for $k=3$.
Some ofNote that I was trying to find counterexamples to these examples and patterns are also mentioned in an OEIS sequenceconjectures for a long time now but couldn't.
How can one find these polynomial pattern expressions for some $d$ algebraically? Rather than needing to compute a lot of examples and then fitting them in a polynomial of degree $2d+1$?
Is there anything out there that can actually be used on this problem?
You can run the python code here and modify digit = 1
variable to check 2*digit+1
digit examples; and also modify variables under #overwrite:
if you wish.
P.S. Can the python code I'm using be more optimized? (Is there a faster way to compute this?)
$$\text{Looking at almost four consecutive palindromes}$$
"Almost palindromic in four bases" The more details as promised: A post mainly focusing on non- if it is palindromic in basesgeneral "problem-system" $b, b+3$ andcan be read on MSE if you are interested in $b+1$more details, or $b+2$.if you want to see the "all
I checked how many of these are in$3$-palindromes" solutions for the following digit groupsnon-general case up to some number base:
($b\le900$) For $3$ digits, therethe extra solutions from general case are $\gt1484$ exampleseasily re-computable if my conjectures are true).
($b\le150$) For $5$ digits, only two examples at I'll also include all $b=16$ and atinfinite families $b=17$
($b\le50$the non-sporadic solutions) Forfor $7$ digits,$k=3$ given there are no examples.
($b\le30$) For $9$ digits, there are no examples.here:
Haven't checkedGiven $\ge11$ digit examples$k\in\mathbb N_0 = \mathbb N \cup \{0\}$, yet."infinite families" giving $3$-palindromes:
(More digits get harder to compute/check)$$
\begin{array}{l,l,l,l}
d & (a_i)&(c_i)k & b\\
d=3 & (2,6)&(1,1)k & 2k+8\\
d=5 & (31,32,0)&(3,2,1)k & 4k+47 \\
d=7 & (34,50,10,74)&(1,1,1,1)k & 2k+76 \\
d=7 & (8,33,0,41)&(1,3,1,3)k & 6k+58 \\
d=7 & (112,15,0,36)&(4,0,1,0)k & 6k+175 \\
d=7 & (227,160,187,200)&(5,3,5,3)k & 6k+280 \\
d=7 & (5,23,6,14)&(2,6,5,0)k & 12k+39 \\
d=7 & (93,78,30,50)&(10,6,7,0)k & 12k+119 \\
d=7 & (47,150,249,26)&(2,6,11,0)k & 12k+291 \\
\end{array}
$$
Edit: Removed odd cases from above as Where these give digits of $(*)$ was rewritten a bit$3$-palindromes in base (below)$b$, which are also palindromic in $b-1,b-2$.
The example outputThat is here (including even digit cases), and thefor example code can be run here; where you can modify, observing the basessecond row (and digitsfamily) being checked.
Two observed exceptions so far, arethe only $71240$ for$d=5$ case infinite family, means $b=16$ and$(31+3k,32+2k,0+1k,32+2k,31+3k)$ are digits of a $1241507$ for$3$-palindrome in base $b=17$$4k+47$, both havingfor every $5$ digits$k$. The second exception beingWe can convert this to a twin primedecimal value easily.
Then we can form the $(*)$ observation as:
All numbers that are not divisible by $b,b+1,b+2,b+3$ and$(3):$ If we can prove these are
palindromic in all of the solutions for $b,b+3$ and either$k=3$ $b+1,b+2$ number(and that sporadic solutions exist only for sufficiently small bases as I conjectured), must
have $3$ digits in those bases or are inwe have solved the finite set $E$ where $E$
so far is$k=4$ problem, the $E=\{71240, 1241507\}$$4$-palindrome problem: There does not exist a number palindromic in four consecutive number bases.
But proving this seems equally hard, if not harder, than proving the initial question itself.
From this: If only 3 digit examples have a chance to be palindromic in $4$ consecutive bases, and $E$ has no more new exceptions (as observed here so far), then it is only needed to prove no new 3 digit solutions exist other than ones under $(1)$ above.