On the binary digits of n and n2
Let s(n) denote the sum of digits in the binary expansion of the integer n. Hare, Laishram and Stoll (2011) studied the number of odd integers such that s(n)=s(n2)=k, for a given integer k≥1. The remaining cases that could not be treated by these authors were k∈{9,10,11,14,15}. In this paper we show...
Saved in:
| Published in | Theoretical computer science Vol. 939; pp. 119 - 139 |
|---|---|
| Main Authors | , , , , , |
| Format | Journal Article |
| Language | English |
| Published |
Elsevier B.V
04.01.2023
|
| Subjects | |
| Online Access | Get full text |
| ISSN | 0304-3975 1879-2294 1879-2294 |
| DOI | 10.1016/j.tcs.2022.10.018 |
Cover
| Summary: | Let s(n) denote the sum of digits in the binary expansion of the integer n. Hare, Laishram and Stoll (2011) studied the number of odd integers such that s(n)=s(n2)=k, for a given integer k≥1. The remaining cases that could not be treated by these authors were k∈{9,10,11,14,15}. In this paper we show that there is only a finite number of solutions for k∈{9,10,11} and comment on the difficulties to settle the two remaining cases k∈{14,15}. A related problem is to study the solutions of s(n2)=4 for odd integers. Bennett, Bugeaud and Mignotte (2012) proved that there are only finitely many solutions and conjectured that n=13,15,47,111 are the only solutions. In this paper, we give an algorithm to find all solutions with fixed sum of digits value, supporting this conjecture, as well as show related results for s(n2)=5. |
|---|---|
| ISSN: | 0304-3975 1879-2294 1879-2294 |
| DOI: | 10.1016/j.tcs.2022.10.018 |