P551
projecteuler.net

Sum of Digits Sequence

ℹ️Published on Saturday, 12th March 2016, 04:00 pm; Solved by 518;
Difficulty rating: 50%

Let $a_0, a_1, \dots$ be an integer sequence defined by:

  • $a_0 = 1$;
  • for $n \ge 1$, $a_n$ is the sum of the digits of all preceding terms.

The sequence starts with $1, 1, 2, 4, 8, 16, 23, 28, 38, 49, \dots$
You are given $a_{10^6} = 31054319$.

Find $a_{10^{15} }$.



Soluzione

Last modified: May 01, 2025. Website built with Franklin.jl and the lovely Julia programming language.