The sum of digits of n and n2

Abstract

Let sq(n) denote the sum of the digits in the q-ary expansion of an integer n. In 2005, Melfi examined the structure of n such that s2(n) = s2(n2). We extend this study to the more general case of generic q and polynomials p(n), and obtain, in particular, a refinement of Melfi's result. We also give a more detailed analysis of the special case p(n) = n2, looking at the subsets of n where sq(n) = sq(n2) = k for fixed k.

0

Discussion (0)

Sign in to join the discussion.

Loading comments…