The Sum of Digits of $N$ and $N 2$: January 2010
The Sum of Digits of $N$ and $N 2$: January 2010
The Sum of Digits of $N$ and $N 2$: January 2010
net/publication/45897038
CITATIONS READS
6 719
3 authors:
Thomas Stoll
University of Lorraine
52 PUBLICATIONS 226 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Thomas Stoll on 05 May 2014.
Abstract. Let sq (n) denote the sum of the digits in the q-ary
arXiv:1001.4170v1 [math.NT] 23 Jan 2010
1. Introduction
Let q ≥ 2 and denote by sq (n) the sum of digits in the q-ary represen-
tation of an integer n. Recently, considerable progress has been made
towards understanding the interplay between the sum-of-digits of some
algebraically defined sequences, such as primes [5] and polynomials [1]
or, in particular, squares [6]. In the latter, C. Mauduit and J. Rivat
proved an asymptotic expansion of the sum of digits of squares [6] in
arithmetic progressions. Their proof heavily relies on good estimates
of quadratic Gauss sums. For the case of general polynomials p(n) of
degree h > 2 there is still a great lack of knowledge regarding their
distribution with respect to digitally defined functionals [1].
Several authors studied the pointwise properties and relationships
of sq (p(n)), e.g., K. Stolarsky [8], B. Lindström [4], G. Melfi [7], and
M. Drmota and J. Rivat [2]. In particular, a conjecture of Stolarsky [8]
about some extremal distribution properties of the ratio sq (p(n))/sq (n)
has been recently settled by the authors [3]. Melfi [7] proposed to study
the set of n’s such that s2 (n2 ) = s2 (n), and he obtained that
(1) # n < N : s2 (n2 ) = s2 (n) ≫ N 1/40 .
Using heuristic arguments, Melfi conjectured a much stronger result
that
Nβ
(2) # n < N : s2 (n2 ) = s2 (n) ≈
log N
with β ≈ 0.75488 . . . , giving an explicit formula for β. The aim of the
present paper is to provide a generalization to general p(n) and base q
K.G. Hare was partially supported by NSERC.
Computational support provided by CFI/OIT grant.
Th. Stoll was partially supported by an APART grant of the Austrian Academy
of Sciences.
1
2 KEVIN G. HARE, SHANTA LAISHRAM, AND THOMAS STOLL
where dj,i,h dj+1,i,h < 0 for all j with h − ⌊i/2⌋ ≤ j < h. Setting
m = q l −r we therefore can choose s1 , s2 in the way that a′h c4h−i,h (m)+
6 KEVIN G. HARE, SHANTA LAISHRAM, AND THOMAS STOLL
Now we can choose k suitably to get the assertion. Finally, for a cubic
polynomial, we are able to achieve p(q s1 x + q s2 + 1) = a′3 x3 + a′2 x2 +
a′1 x+a′0 with a′3 , a′2 , a′1 , a′0 > 0 and 3a′3 > a′2 . Then, each coefficient of xi
in p(q s1 tm (x) + q s2 + 1), 0 ≤ i ≤ 12, is a function of m and a′3 , a′2 , a′1 , a′0 ,
and thus we get for sufficiently large l,
(21) k ≥ 2l + 2.
Proof. Let (U)2 = 1(k) 01(n) with n ≥ k+2. Then U = 2n −1+2n+1 (2k −
1) and we calculate
U 2 = 22n − 2n+1 + 1 + 2n+2 (2n+k − 2n − 2k + 1) + 22n+2 (22k − 2k+1 + 1)
= 1 + 2n+1 + 22n + 2n+k+2 (1 + 2 + 22 + · · · + 2n+k−1 ) − 22n+k+2
= 1 + 2n+1 + 2n+k+2 + · · · + 22n−1 + 22n+k+2 + 22n+k+3 + · · · + 22n+2k+1 .
Hence s2 (U 2 ) = n and therefore s2 (u2 ) = n1 and s2 (v 2 ) = n2 .
THE SUM OF DIGITS OF n AND n2 9
uv =1 + 2n1 + 2n2 + 2n1 +n2 − 2n1 +k1 +1 − 2n2 +k2 +1 − 2n1 +n2 +k1 +1 −
2n1 +n2 +k2 +1 + 2n1 +n2 +k1 +k2 +2 .
10 KEVIN G. HARE, SHANTA LAISHRAM, AND THOMAS STOLL
Base 10 Base 2
u s2 (u) s2 (u2)
23 10111 4 3
47 101111 5 4
111 1101111 6 4
95 1011111 6 5
5793 1011010100001 6 5
223 11011111 7 5
727 1011010111 7 5
191 10111111 7 6
367 101101111 7 6
415 110011111 7 6
1451 10110101011 7 6
46341 1011010100000101 7 6
479 111011111 8 5
447 110111111 8 6
887 1101110111 8 6
Now consider
(26) w1 = 2q n1 +n2 +k1 +k2 +3 − 2(q − 1)q n1 +n2 +k1 +2 − 2(q − 1)q n1 +n2 +k2 +2
and
(28) k1 = n2 ≥ k2 + 2, n1 = 2k2 − α,
References
[1] C. Dartyge, G. Tenenbaum, Congruences de sommes de chiffres de valeurs poly-
nomiales, Bull. London Math. Soc. 38 (2006), no. 1, 61–69.
[2] M. Drmota, J. Rivat, The sum-of-digits function of squares, J. London Math.
Soc. (2) 72 (2005), no. 2, 273–292.
[3] K. G. Hare, S. Laishram, T. Stoll, Stolarsky’s conjecture and the sum of digits
of polynomial values, submitted, arxiv.org.
[4] B. Lindström, On the binary digits of a power, J. Number Theory 65 (1997),
321–324.
[5] C. Mauduit, J. Rivat, Sur un probléme de Gelfond: la somme des chiffres des
nombres premiers, Annals of Mathematics, to appear.
[6] C. Mauduit, J. Rivat, La somme des chiffres des carrés, Acta Mathematica, 203
(2009), 107–148. .
[7] G. Melfi, On simultaneous binary expansions of n and n2 , J. Number Theory
111 (2005), no. 2, 248–256.
[8] K. B. Stolarsky, The binary digits of a power, Proc. Amer. Math. Soc. 71 (1978),
1–5.