The Ramanujan Journal

, Volume 50, Issue 3, pp 639–684 | Cite as

Finite generating functions for the sum-of-digits sequence

  • Christophe VignatEmail author
  • Tanay Wakhare


We derive some new finite sums involving the sequence \(s_{2}\left( n\right) ,\) the sum-of-digits of the expansion of n in base 2. These functions allow us to generalize some classical results obtained by Allouche, Shallit and others.


Sum-of-digits Hurwitz zeta function Infinite products Lambert transform 



The authors thank Eric Rowland for interesting comments on an earlier version of this manuscript, and Terri, Sen, Valerio, Natalie, and the Calvert Suite for their support. This material is based upon work supported by the National Science Foundation under Grant No. DMS-1439786 while the first author was in residence at the Institute for Computational and Experimental Research in Mathematics in Providence, RI, during the Point Configurations in Geometry, Physics and Computer Science Semester Program.


  1. 1.
    Adams-Watters, F.T., Ruskey, F.: Generating functions for the digital sum and other digit counting sequences. J. Integer Seq. 12 (2009), Article 09.5.6,
  2. 2.
    Allouche, J.-P., Shallit, J.: Sums of digits and the Hurwitz Zeta function. In: Nagasaka, K., Fouvry, E. (eds.) Analytic Number Theory. Lecture Notes in Mathematics, vol. 1434. Springer, Berlin (1990)Google Scholar
  3. 3.
    Allouche, J.-P., Shallit, J.: The Ubiquitous Prouhet–Thue–Morse Sequence. In: Ding, C., Helleseth, T., Niederreiter, H. (eds.) Sequences and Their Applications. Discrete Mathematics and Theoretical Computer Science. Springer, London (1999)Google Scholar
  4. 4.
    Allouche, J.-P., Shallit, J.: Automatic Sequences, Theory, Applications Generalizations. Cambridge University Press, New York (2003)CrossRefGoogle Scholar
  5. 5.
    Allouche, J.-P., Shallit, J., Sondow, J.: Summation of series defined by counting blocks of digits. J. Number Theory 123, 133–143 (2007)MathSciNetCrossRefGoogle Scholar
  6. 6.
    Andrews, G.E.: Fibonacci numbers and the Rogers–Ramanujan identities. Fibonacci Q. 42, 3–19 (2004)MathSciNetzbMATHGoogle Scholar
  7. 7.
    Barnes, E.W.: The theory of the double gamma function. Philos. Trans. R. Soc. Lond. A 196, 265–387 (1901)CrossRefGoogle Scholar
  8. 8.
    Bateman, P., Bradley, D., Callan, D., Stong, R.: Binary expansions and kth powers: 10596. Am. Math. Mon. 106–4, 366–367 (1999)CrossRefGoogle Scholar
  9. 9.
    Borwein, J.M., Borwein, P.B.: Pi and the AGM: A Study in Analytical Number Theory and Computational Complexity. Wiley, New York (1987)zbMATHGoogle Scholar
  10. 10.
    Borwein, J.M., Zucker, I.J.: Fast evaluation of the gamma function for small rational fractions using complete elliptic integrals of the first kind. IMA J. Numer. Anal. 12, 519–526 (1992)MathSciNetCrossRefGoogle Scholar
  11. 11.
    Dahmen, W., Micchelli, C.A.: The number of solutions to linear diophantine equations and multivariate splines. Trans. Am. Math. Soc. 308(2), 509–532 (1988)MathSciNetCrossRefGoogle Scholar
  12. 12.
    Erdélyi, A., Magnus, W., Oberhettinger, F., Tricomi, F.G.: Higher Transcendental Functions, vol. 1. Krieger, New York (1981)zbMATHGoogle Scholar
  13. 13.
    Klosinski, L.F., Alexanderson, G.L., Hillman, A.P.: The William Lowell Putnam mathematical competition. Am. Math. Mon. 89, 679–686 (1982)MathSciNetCrossRefGoogle Scholar
  14. 14.
    Knuth, D.: The Art of Computer Programming, Combinatorial Algorithms, Part 1, vol. 4A. Addison-Wesley, Reading (2011)zbMATHGoogle Scholar
  15. 15.
    Legendre, A.: Théorie des Nombres, 4th edn. Firmin Didot Frères (1900)Google Scholar
  16. 16.
    Merca, M., Schmidt, M.D.: Generating special arithmetic functions by Lambert series factorizations.
  17. 17.
    Olver, F.W.J., Lozier, D.W., Boisvert, R.F., Clark, C.W.: NIST Handbook of Mathematical Functions. Cambridge University Press, New York (2010).
  18. 18.
    Prudnikov, A.P., Marichev, O.I.: Integrals and Series: Elementary Functions, vol. 1. CRC Press, Boca Raton (1986)zbMATHGoogle Scholar
  19. 19.
    Prudnikov, A.P., Marichev, O.I.: Integrals and Series: Special Functions, vol. 2. CRC Press, Boca Raton (1986)zbMATHGoogle Scholar
  20. 20.
    Prudnikov, A.P., Marichev, O.I.: Integrals and Series: Inverse Laplace Transforms, vol. 5. CRC Press, Boca Raton (1992)zbMATHGoogle Scholar
  21. 21.
    Ruijsenaars, S.N.M.: On Barnes’ multiple zeta and gamma functions. Adv. Math. 156, 107–132 (2000)MathSciNetCrossRefGoogle Scholar
  22. 22.
    Shallit, J.: Advanced problem 6450, Am. Math. Mon. 91, 59–60 (1984), with a solution that appeared in Am. Math. Mon. 92, 513–514 (1985)Google Scholar
  23. 23.
    Spreafico, M.: On the Barnes double zeta and gamma functions. J. Number Theory 129, 2035–2063 (2009)MathSciNetCrossRefGoogle Scholar

Copyright information

© Springer Science+Business Media, LLC, part of Springer Nature 2018

Authors and Affiliations

  1. 1.L.S.S., CentraleSupélecUniversité Paris SudOrsayFrance
  2. 2.Department of MathematicsTulane UniversityNew OrleansUSA
  3. 3.University of MarylandCollege ParkUSA

Personalised recommendations