Professional Documents
Culture Documents
On The Sum of Digits of Some Sequences of Integers
On The Sum of Digits of Some Sequences of Integers
3 Centro de Ciencias Matemáticas, Universidad Nacional Autónoma de México, 58089 Morelia, Michoacán, Mexico
Abstract: Let b ≥ 2 be a fixed positive integer. We show for a wide variety of sequences {an }∞ n=1 that for almost all n the
sum of digits of an in base b is at least cb log n, where cb is a constant depending on b and on the sequence. Our
approach covers several integer sequences arising from number theory and combinatorics.
1. Introduction
For a positive integer b ≥ 2 let us denote by sb (m) the sum of digits of a positive integer m when written in base b.
Lower bounds for sb (m) when m runs through the members of a sequence with some interesting combinatorial meaning
have been investigated earlier. For example, it follows from a result of Stewart [14], see also [9] for a slightly more general
result, that in the case of Fibonacci numbers (namely, the sequence defined by F0 = 0, F1 = 1 and Fn+2 = Fn+1 + Fn ,
n ≥ 0) the inequality
log n
sb (Fn ) > c1
log log n
∗
E-mail: franciscojavier.cilleruelo@uam.es
†
E-mail: fluca@matmor.unam.mx
‡
E-mail: juanjo.rue@icmat.es
§
E-mail: ana.zumalacarregui@uam.es
188
J. Cilleruelo et al.
holds for all n ≥ 3 for some positive constant c1 depending on b. In [10], it is shown that the inequality
holds for all n ≥ 1, where c2 is some positive constant depending on b. In [13], it was shown that if we put
1 2n 2n
Cn = and Dn =
n+1 n n
for the Catalan number and the middle binomial coefficient, respectively, then both inequalities
p p
sb (Cn ) > ε(n) log n and sb (Dn ) ≥ ε(n) log n (1)
hold for n running over a set with asymptotic density 1, where ε(n) is any function tending to zero when n tends to
infinity. In [12], it was shown that there is some positive constant c3 depending on b such that if we put
n 2 2
X n n+k
An =
k=0
k k
1/4
log n
sb (An ) > c3 (2)
log log n
holds for n running over a set with asymptotic density 1. Some of the above results were superseded by the results from
the recent paper [8], where it is shown that if r = (r0 , r1 , . . . , rm ) is a fixed vector of nonnegative integers with r0 > 0 and
if we put
n r0 r r
n + km m
X n n+k 1
Sn (r) = ··· for n = 0, 1, . . . ,
k=0
k k k
then for r =
6 (1) there exists a positive constant c4 depending on both b and r such that the inequality
log n
sb (Sn (r)) > c4 (3)
log log n
holds for almost all n. Note that inequality (3) improves (1) for the case of the middle binomial coefficients Bn because
Cn = Sn (r) for r = (2), as well as inequality (2) for the case of the Apéry numbers An because An = Sn (r) for r = (2, 2).
In [11], it is shown that if Pn is the partition function of n, then the inequality
log n
sb (Pn ) >
7 log log n
189
On the sum of digits of some sequences of integers
where f(x) is a two times differentiable function satisfying f 00 (x) 1/x for large x. Many sequences arising in number
theory and combinatorics fit into this scheme. The most basic one, the number of permutations of a set of n elements is
clearly a sequence of this kind, since from Stirling’s approximation formula we have
The sequence an = nk=1 (k 2 + 1) also has similar behavior: an = c6 n!2 (1 + O(n−1 )). It was proved in [3] that an is
Q
where the subindex T indicates the considered constraint and the function fT is given by
1
fT (n) = n log n − n − log n + n log γT + log cT + log 2π.
2
Very recently, many authors have shown that several families of labelled graphs satisfy similar formulas: Giménez and
Noy [6], see also [7], proved that the number of labelled planar graphs with n vertices follows an asymptotic formula of
the form
c0 n−7/2 γ n · n!(1 + O(n−1 )),
where γ ≈ 27.22687. More generally, as it is shown in [2], see also [1], the number of labelled graphs which can be
embedded in a surface of genus g satisfies a very similar formula (with the same growth factor). See Table 1 for the
asymptotics of these sequences.
Our main result gives a lower bound for sb (an ) for sequences of controlled growth described before.
Theorem 1.1.
Let {an }∞
n=1 be a sequence of positive integers with asymptotic behavior
for some α > 0 and a two times differentiable function f. For any base b ≥ 2, the inequality
β log n 2
sb (an ) > , β = min α, ,
10 log b 3
It is a straightforward calculation to check that condition (5) holds for all the sequences in Table 1, except for the Bell
numbers which should be studied more carefully. We denote by Bn the nth Bell number. In this case, the asymptotic
estimate for Bn is given in terms of an implicit function r = r(n) so the analysis of this particular case should be made
in detail. More concretely, we obtain the following corollary, which will be proved in Section 3:
190
J. Cilleruelo et al.
Sequence Asymptotic
permutations n!
n
Y
(k 2 + 1) cn!2 (1 + O(n−1 ))
k=1
Corollary 1.2.
Let Bn denote the nth Bell number. For any base b ≥ 2, the inequality
log n
sb (Bn ) >
60 log b
1.1. Notation
We use Landau’s symbols O and o as well as the Vinogradov’s symbols , and with their usual meanings. Recall
that A = O(B), A B and B A are all equivalent to the fact that the inequality |A| ≤ cB holds with some constant c.
The constants implied by these symbols in our arguments might depend on the number b. Furthermore, A B means
that both A B and B A hold. We use c1 , c2 , . . . for positive constants depending on the number b and the sequence
{an }∞
n=1 .
β log n
Nb (x) = n ∈ [x/2, x) : sb (an ) < ,
10 log b
where β ≤ α will be chosen later. We need to show that # Nb (x) = o(x) as x → ∞, since afterwards the conclusion of
Theorem 1.1 will follow by replacing x by x/2, then by x/4, and so on, and summing up the resulting estimates.
For n ∈ Nb (x), we write
an = dk1 bk1 + dk2 bk2 + · · · + dks bks, (6)
191
On the sum of digits of some sequences of integers
where dk1 , . . . , dks ∈ {1, . . . , b − 1} and k1 > k2 > . . . > ks . Observe that for i = 1, . . . , s we have
if i < s. We choose k(n) to be the smallest ki such that bki −k1 > n−β . From the definition of k(n), we immediately see
that
The positive integers D = D(n) bounded by the right hand side of the above inequality have at most
K = bβ log x/ log b + 2c digits in base b. As n ∈ Nb (x), the number of nonzero digits of D(n) is bounded by
S = bβ log x/(10 log b)c, and
S S
X K K (b − 1)eK
# Db (x) ≤ i
(b − 1) ≤ (S + 1) S
(b − 1) ≤ (S + 1)
i=0
i S S
β log x/(10 log b)
β log x
≤ + 1 10e(b − 1) + o(1) = x δ+o(1)
10 log b
as x → ∞, where
β log (10e(b − 1))
δ= .
10 log b
It can be checked that δ < β/2 for all integers b ≥ 2. Thus, we get that
Combining the fact that an = ef(n) (1 + O(n−α )) with relations (6) and (7) we have
We now write [
Nb (x) = Nb,D (x), Nb,D (x) = {n ∈ Nb (x) : D(n) = D}.
D∈Db (x)
192
J. Cilleruelo et al.
and we must now bound the number of elements lying in each Nb,D (x).
For a fixed D ∈ Db (x) and y depending on x, to be chosen later, we take a look at the elements n ∈ Nb,D (x). We say
that n is separated if [n, n + y] ∩ Nb,D (x) = {n}. It is clear that there are at most x/(2y) + 1 elements on Nb,D (x) which
are separated.
Let us now count the non-separated elements n ∈ Nb,D (x). For such an n, there exists 1 ≤ m ≤ y with n + m ∈ Nb,D (x).
Taking the difference of the relations (9) in n, n + m ∈ Nb,D (x), we get
where ζ ∈ [n, n + m] is some point whose existence is guaranteed by the Intermediate Value Theorem. It follows from
condition (5), which in particular implies f 0 (x) log x, that k(n + m) 6= k(n) for large x, as x/2 < n < x, in the above
estimate. Thus, non-separated elements n in Nb,D (x) are characterized by their values k(n). Denoting by [x] the closest
integer to x, for a fixed m ≤ y, the differences
mf 0 (ζ)
k(m + n) − k(n) = (10)
log b
take O(m) integer values, since for two elements n, n + ` ∈ Nb,D (x) we have by condition (5),
m m`
(f 0 (ζn+` ) − f 0 (ζn )) = O(m).
log b x log b
For a fixed difference in (10), say M, we must be able to count the number of elements n ∈ Nb,D (x) such that
m
(f 0 (ζn+` ) − f 0 (ζn )) = O(x −β )
log b
for at most O(1 + x 1−β /m) values of n. Thus, there are O(y2 + yx 1−β ) non-separated elements in Nb,D (x), for an arbitrary
D ∈ Db (x). Setting y = x β/2 , we observe that
x
# Nb,D (x) yx 1−β + y2 + + 1 x 1−β/2 + x β x 1−β/2 ,
y
whenever β ≤ 2/3. Thus, if we choose β = min {α, 2/3} it follows from estimate (8) that
X
# Nb (x) = # Nb,D (x) ≤ x 1−β/2 # Db (x) < x 1−β/2+δ+o(1) = o(x)
D∈Db (x)
193
On the sum of digits of some sequences of integers
Lemma 3.1.
Let r = r(n), defined implicitly by
rer = n + 1. (11)
Then r
n!ee −1
Bn = p (1 + O(e−r/5 )). (12)
rn 2πr(r + 1)er
The number r given in (11) satisfies r = log n − log log n + o(1) as n → ∞, therefore
1/5
log n
e−r/5 = (1 + o(1)) = O(n−1/6 ) as n → ∞. (13)
n
Combining Stirling’s formula (4) with formula (13) we can rewrite (12) as
r
Bn = ef(n) (1 + O(n−1/6 )), log x + er − − log(r + 1) − 1,
2x + 1 1 1
f(x) = x log x − x − log r +
2 2 2 2
and r = r(x) is defined for all real numbers x ≥ 1 by equation (11) (where n is replaced by x). In particular, r(x) has
a derivative for real x > 1. In fact, differentiating relation (11) (with x instead of n) with respect to the variable x,
we have r 0 er + rr 0 er = 1, or equivalently
r 0 er =
1
, (14)
r+1
and, since er = (x + 1)/r,
r
r0 = . (15)
(x + 1)(r + 1)
We now obtain the asymptotic behavior of the second derivative of f(x). Observe that after differentiating we have
d r
f 0 (x) = log r + log x + er − − log(r + 1) − 1
2x + 1 1 1
x log x − x −
dx 2 2 2 2
(2x + 1)r 0 r0 r0
+ r 0 er − −
1
= log x − log r − +
2r 2x 2 2(r + 1)
− e−r
1 1 1 1
= log x − log r + + − ,
2x 2(r + 1)2 r + 1 2r
1 r0
f 00 (x) = + + O(x −2 ) = + + O(x −2 ) ,
1 1 1
x r x (x + 1)(r + 1) x
and we are under the assumptions of Theorem 1.1, so Corollary 1.2 holds.
194
J. Cilleruelo et al.
Acknowledgements
We thank the referees for their comments and suggestions that definitely improved the quality of the paper. The second
author thanks Professor Arnold Knopfmacher for useful suggestions. This paper was written while the second author
was on sabbatical leave from the Mathematical Institute UNAM from January 1 to June 30, 2011 and supported by
a PASPA fellowship from DGAPA. The third author is supported by a JAE-DOC grant from the Junta para la Ampliación
de Estudios (CSIC), jointly financed by the FSE. The fourth author is supported by an FPU grant from Ministerio de
Educación, Ciencia y Deporte, Spain. The first, third and fourth authors are also supported by the MTM2011-22851
grant, Spain. The authors thank the ICMAT Severo Ochoa project SEV-2011-0087.
References
[1] Bender E.A., Gao Z., Asymptotic enumeration of labelled graphs with a given genus, Electron. J. Combin., 2011,
18(1), # P13
[2] Chapuy G., Fusy É., Giménez O., Mohar B., Noy M., Asymptotic enumeration and limit laws for graphs of fixed
genus, J. Combin. Theory Ser. A, 2011, 118(3), 748–777
[3] Cilleruelo J., Squares in (12 + 1) · · · (n2 + 1), J. Number Theory, 2008, 128(8), 2488–2491
[4] Evertse J.-H., Schlickewei H.P., Schmidt W.M., Linear equations in variables which lie in a multiplicative group,
Ann. of Math., 2002, 155(2), 807–836
[5] Flajolet P., Sedgewick R., Analytic Combinatorics, Cambridge University Press, Cambridge, 2009
[6] Giménez O., Noy M., Asymptotic enumeration and limit laws of planar grahs, J. Amer. Math. Soc., 2009, 22(2),
309–329
[7] Giménez O., Noy M., Rué J., Graph classes with given 3-connected components: asymptotic enumeration and random
graphs, Random Structures Algorithms (in press)
[8] Knopfmacher A., Luca F., Digit sums of binomial sums, J. Number Theory, 2012, 132(2), 324–331
[9] Luca F., Distinct digits in base b expansions of linear recurrence sequences, Quaest. Math., 2000, 23(4), 389–404
[10] Luca F., The number of non-zero digits of n!, Canad. Math. Bull., 2002, 45(1), 115–118
[11] Luca F., On the number of nonzero digits of the partition function, Arch. Math. (Basel), 2012, 98(3), 235–240
[12] Luca F., Shparlinski I.E., On the g-ary expansions of Apéry, Motzkin, Schröder and other combinatorial numbers,
Ann. Comb., 2010, 14(4), 507–524
[13] Luca F., Shparlinski I.E., On the g-ary expansions of middle binomial coefficients and Catalan numbers, Rocky
Mountain J. Math., 2011, 41(4), 1291–1301
[14] Stewart C.L., On the representation of an integer in two different bases, J. Reine Angew. Math., 1980, 319, 63–72
195