0

Being interested in these polynomials, would like to clarify one small observation.
Let $n\in\mathbb{N}$ and $P_{n}$ is $0,1$-polynomial whose coefficients are binary digits of $n$.
Let $n$ has prime factorization

$$n = p_{1}^{m_{1}}\cdot p_{2}^{m_{2}}\cdots p_{k}^{m_{k}}$$

Find for each prime factor its binary representation $0,1$-polynomial $P_{p_i}$ and substitute in the factorization formula (with corresponding degrees): $$Q_{n}=P_{p_{1}}^{m_{1}} \cdot P_{p_{2}}^{m_{2}}\cdots P_{p_{k}}^{m_{k}}$$
The question is:

When $Q_{n} == P_{n}$ ?

I discovered that this is true for about half of numbers, and I can’t see any pattern in them.
For example:
$p_2=x, p_3=1+x$
$n=6, p_2 \cdot p_3 = x+x^2==p_6$
$n=9, p_3 \cdot p_3 = 1+2 x+x^2 \neq p_9=1+x^3$

$n=56, Q_{56}=x^3+x^4+x^5==P_{56}$
$n=57, Q_{57}=1+2 x+x^4+x^5 \neq P_{57}=1+x^3+x^4+x^5$

First numbers for which $Q_{n} \neq P_{n}$:
$$9, 18, 21, 25, 27, 33, 35, 36, 39, 42, 45, 49, 50, 54, 55, 57, 63, 65, 66, 69, 70, 72, 75, 77, 78, 81\dots$$

1 Answers1

2

$Q_n = P_n$ iff there are no carries when multiplying $p_{1}^{m_{1}}\cdot p_{2}^{m_{2}}\cdots p_{k}^{m_{k}}$ in binary.

Consider $P_a P_b$: if there are no carries in the binary multiplication of $ab$ then each set bit of the product corresponds to a coefficient $1$ in $P_{ab}$ and $P_{ab} = P_a P_b$. But if there are carries then $P_a P_b$ is not a $0,1-$polynomial, and furthur multiplication by polynomials with no negative coefficients cannot restore the property of being a $0,1-$polynomial.

Peter Taylor
  • 6,571